Commit Graph
100 Commits
Author SHA1 Message Date
Santhosh Thottingal 2e16e9b701 Remove the reference to map block
Change-Id: I141d468d352176f000a750d40b54b4dbf799ba05
2016-04-06 10:23:38 +05:30
Santhosh Thottingal 7780bfb17a Add left and right padding for search header of compact ULS
See https://phabricator.wikimedia.org/T130633

Change-Id: I59a632c312682a92cf8341dec9de2779a81bb298
2016-04-05 10:15:27 +05:30
Santhosh Thottingal 8b3d77dae1 Support language codes that are redirects
Addressing issue #207

Such language codes were not listed in ULS language list.

Root cause was $.uls.data.getLanguagesByScriptGroup was returning
a map of script groups, which contained only resolved language codes.
And later in append method of jquery.uls.lcd.js, there is a check if
that language code is part of languages list passed as option to uls()
call. This test fails and the language code does not get added to display.

Change-Id: Iec914a9694a46eef5750ef3af7346d66e052ab77
2016-04-05 09:17:09 +05:30
Santhosh Thottingal f2a27323b6 Merge pull request #205 from atlight/patch-1
Fix the cancel event function to prevent erroneous close
2016-01-02 10:09:06 +05:30
Santhosh Thottingal d4de09ffb9 Improve the hide-show logic of ULS
* The events are suppressed on click of ULS trigger, it is an anti
  pattern. It can cause other overlay dialogs, if any, to stay with
  ULS and causes UI glitch. This patch just propagates the events and not
  eats up.
* The show method was hiding all other ULS dialoges open using a
  global $('.uls-menu').hide(). This is again not a good pattern.
  A plugin instance should not interfere with other instance's state.
  More over, calling jQuery hide() method on menu instead of plugin's
  hide method leaves the other plugin instance in a corrupted state.
  The plugin hide method does more things than just hiding the menu.
  It has a 'shown' book keeping property to update. This kind of
  corrupted state was causing bugs like https://phabricator.wikimedia.org/T114123
* While avoiding the above two antipatterns, the way ULS was hidden when
  clicked on any 'other' part of body was improved. It now uses event.target
  to correctly handle the 'click-outside-hide' logic

All these above changes does not change any existing UX.

Change-Id: I40b355115cbda54a68e8d58d3750fb9f1c3b6920
2015-10-06 10:35:05 +05:30
Santhosh Thottingal 5dbb9d0111 Merge pull request #185 from robin0van0der0v/patch-2
Fixes unit test by adding "tzl".
2015-04-20 19:21:08 +05:30
Santhosh Thottingal 71f61eaa0e Merge pull request #184 from robin0van0der0v/patch-1
Added Talossan [ISO 639-3:tzl] to langdb and updated jquery.uls.data
2015-04-20 16:25:42 +05:30
Santhosh Thottingal 09883174f4 Merge pull request #182 from Mjbmr/patch-1
Fixes for some languages
2015-04-08 20:08:05 +05:30
Santhosh Thottingal 345097a8bd Merge pull request #181 from amire80/no-common
Show the Common language section only if the list is long enough
2015-04-08 16:42:01 +05:30
Santhosh Thottingal ef6f73bb06 Merge pull request #179 from thiemowmde/patch-1
Make magnifying glass icon clickable
2015-01-30 07:40:11 -08:00
Santhosh Thottingal 0a627fb531 Merge pull request #177 from prtksxna/dom
Construct DOM using jQuery instead of an HTML String
2015-01-26 21:02:26 -08:00
Santhosh Thottingal 3469f31235 Remove a dangling comment line
Change-Id: I7106f64b553e167554424e9a3d8687d22d8e4f82
2014-12-23 15:23:45 +05:30
Santhosh Thottingal 10777bb25e Remove unused region filter reference
Change-Id: I130e03bb7ea8bf24e6681fdd8a329c25941ca035
2014-12-22 16:40:20 +05:30
Santhosh Thottingal 107621319d Reduce the title height by moving close button to same row
Change-Id: Id5af0c0bc5654f4ef7decf4712d8eb46ef70933c
2014-12-22 16:39:44 +05:30
Santhosh Thottingal f417707d67 Remove the unused code to sync region highlight on scroll
Change-Id: Id779c25237584f90ab9132fe24f6cbade1b58da7
2014-12-22 16:38:03 +05:30
Santhosh Thottingal 63a0af6142 Merge branch 'santhoshtr-uls-remove-map' 2014-12-22 14:54:16 +05:30
Santhosh Thottingal 499c30d0ea Merge branch 'uls-remove-map' of https://github.com/santhoshtr/jquery.uls into santhoshtr-uls-remove-map
Change-Id: Ie59e2a59225873b5cf432df526cbfc135e539d32
2014-12-22 14:51:46 +05:30
Santhosh Thottingal b0d8d0ae6a Merge pull request #170 from amire80/auto-width
Select the menu width automatically
2014-12-22 11:16:53 +05:30
Santhosh Thottingal 94e867f62e Merge pull request #173 from amire80/columns-number
A more explicit support for valid columns number
2014-12-15 15:27:26 +05:30
Santhosh Thottingal 08044f8aef Merge pull request #168 from amire80/columns
Allow sending the number of lcd columns as a parameter
2014-12-04 14:31:26 +05:30
Santhosh Thottingal 03a1baa4ed Merge pull request #167 from amire80/aeb-autonym
Update the Arabic script autonym for aeb
2014-11-26 16:27:07 +05:30
Santhosh Thottingal d1e0b30e5f Fix broken tests while adding more languages
Change-Id: I8c180e96bc2fb40582e0fedfd9c8eab430961c59
2014-11-17 10:32:24 +05:30
Santhosh Thottingal 3a7840f937 Merge pull request #165 from amire80/langdbjson
Add languages to langdb: Bari, Dinka, Songhay
2014-11-17 09:47:02 +05:30
Santhosh Thottingal 022efabf38 Minor formatting changes
Change-Id: I3ffd7029165ff614c13000b333ed30d3874fba28
2014-09-23 16:16:44 +05:30
Santhosh Thottingal a8afed3972 Update ULS data with latest supplementalData.xml from CLDR
Change-Id: I30d302374c784b7baeb99150a1c53d14bab4123c
2014-09-22 14:01:36 +05:30
Santhosh Thottingal 7346469e20 Add decorator option for language links
Callback function to be called when a language link is prepared
Can be used for custom decoration.
Arguments:
(a) the $language - the language link jQuery object
(b) languageCode

The function can do any styling, changing properites etc on the passed link.
See examples/decorator.html for example usage.

Change-Id: I5a67654440a07cf7dfac683e22dcb5000ded0bfe
2014-09-22 12:32:05 +05:30
Santhosh Thottingal c2b68e8cbc Remove the region selector feature
* Maps removed from UI
* From no-results UI, removed the links to navigate by clicking region names
* Removed the $.fn.regionSelctor plugin, Retained the RegionSelector class
* Removed all related css for the removed UI parts
* Reduced the padding for main ULS title so that the top header takes less height
* And a dozen of related changes

Change-Id: I8ac89ebe380047ca267e5c7720c2eaa3da080e9d
2014-07-27 20:29:01 +05:30
Santhosh Thottingal 18f11eda58 Merge pull request #154 from kartikm/jqueryname
Use jquery instead of deprecated jQuery in package.json
2014-07-27 20:15:19 +05:30
Santhosh Thottingal 9f9366e29b Merge pull request #155 from kartikm/travis
Fix .travis.yml
2014-06-10 15:02:42 +05:30
Santhosh Thottingal abc82945c1 Bring back the clear icon for clearing the search
Caused by a class rename

Change-Id: If4fa0bc14ca890e43182993f8bdd5ddb9de62417
2014-06-03 09:28:43 +05:30
Santhosh Thottingal fef552d97b Merge branch 'master' of https://github.com/nemobis/jquery.uls into nemobis-master
Change-Id: I27589e099cf9841194c92228b8d91cee33937390
2014-06-02 10:03:31 +05:30
Santhosh Thottingal 36478fa55a Fix css class names in the template
Somehow missed in previous merges

Change-Id: I700f53b6d9d78f7b5db88d880c151139bfb7e4dc
2014-05-22 09:33:12 +05:30
Santhosh Thottingal afb99eb09d Merge branch 'edg2s-css' 2014-05-18 14:14:15 +05:30
Santhosh Thottingal b3c5c44efa Merge branch 'css' of github.com:edg2s/jquery.uls into edg2s-css
Change-Id: I04d52aa78bb99762dbc1982f8b1515e9cb9d7e67
2014-05-18 14:08:09 +05:30
Santhosh Thottingal e59b5233b1 Merge pull request #150 from thiemowmde/master
Hide misplaced borders in the compact design
2014-05-18 10:44:12 +05:30
Santhosh Thottingal 7d38ed9bde Merge branch 'master' of github.com:wikimedia/jquery.uls 2014-05-18 10:21:39 +05:30
Santhosh Thottingal 9599ed7d26 Fix the jQuery migration warnings
Remove the spaces in the beginning of html template strings.
$( html ) require html to start with  '<'

See https://bugzilla.wikimedia.org/show_bug.cgi?id=65400

Change-Id: I93eaf41390ab72fcae1b8d4015585bc4f82e6f8a
2014-05-18 10:20:07 +05:30
Santhosh Thottingal cc37ec225d Upgrade to jQuery 1.11.1
Change-Id: I3eaf9c56fe18bad51ce22b1292d6d7308ec20690
2014-05-18 10:18:30 +05:30
Santhosh Thottingal d352b73c37 Merge pull request #145 from edg2s/patch-3
Consistently use this when scope allows it
2014-04-29 09:16:10 +05:30
Santhosh Thottingal c7c938cf4c Merge pull request #143 from edg2s/patch-1
Always close with 'cancel' method
2014-04-26 16:59:26 +05:30
Santhosh Thottingal 04d11ea53f Remove the unused option menu
Fixes issue #140

Change-Id: Idc04a45b97837c5f9bd1f975b6668b6539df0752
2014-04-26 16:57:23 +05:30
Santhosh Thottingal 426ccf0131 Merge pull request #138 from kartikm/qunit-path-fix
Fix the path to qunit.js and qunit.css
2014-04-23 12:25:55 +05:30
Santhosh Thottingal abff2c4555 Merge pull request #139 from Nikerabbit/lud
Add Ludian
2014-04-13 09:28:19 +05:30
Santhosh Thottingal 4ec71d0d44 Merge pull request #137 from Nikerabbit/cssfix
Remove prefixed border-radius rules
2014-03-23 09:58:14 +05:30
Santhosh Thottingal 000727d935 Merge branch 'master' of github.com:jcrowgey/jquery.uls into jcrowgey-master
Change-Id: If567281d5eebbbcd47ecf48788a7385ad8e01463
2014-03-09 09:52:28 +05:30
Santhosh Thottingal 859bccd589 Test: Add lut to the list of languages in AM region
Change-Id: Ic21bf47945e5501880bc221b47d128f6bd0fbbf6
2014-03-03 15:09:45 +05:30
Santhosh Thottingal fd81a809a7 Merge branch 'master' of github.com:wikimedia/jquery.uls
Change-Id: I8270730779a194796ded1c1c82fe48686866c075
2014-03-03 15:07:06 +05:30
Santhosh Thottingal 43abc4ed73 Merge pull request #127 from kartikm/master
Add rwr and ota to the languages supported by ULS
2014-02-05 00:01:24 -08:00
Santhosh Thottingal e912191845 Merge pull request #125 from Nikerabbit/linear-gradient
Drop -moz-linear-gradient for images
2014-01-24 07:40:03 -08:00
Santhosh Thottingal 53b745ae54 Merge pull request #124 from atdt/master
Apply /* @embed */ pragma to all images, not just the topmost in each block
2014-01-20 11:03:45 -08:00
Santhosh Thottingal f2fdbd8eae Merge branch 'master' of github.com:wikimedia/jquery.uls 2014-01-01 19:51:42 +05:30
Santhosh Thottingal 50477e244a Update documentation about options
Change-Id: Ib92ae9e2f246d59fe712ba58cb1911360fc69ca7
2014-01-01 19:50:47 +05:30
Santhosh Thottingal a1b5db4cad Update README.md 2013-12-29 10:25:24 +05:30
Santhosh Thottingal a93ad4b2e3 Remove comments from json
Change-Id: I1301515995597216b2a4b7bda293c48d91051c7b
2013-12-23 10:47:24 +05:30
Santhosh Thottingal d1a007e6a7 Merge pull request #122 from Nikerabbit/perf
Make ULS language selector appear faster after clicking trigger
2013-12-20 05:21:00 -08:00
Santhosh Thottingal 902afa553f Add the missing closing paranthesis for Chinese Simplified Han
See https://github.com/santhoshtr/AutonymFont/issues/52

Change-Id: I6759164bf8a3f19ebe6c00173b7097aabec8155b
2013-12-07 19:56:58 +05:30
Santhosh Thottingal cfba32afb5 Remove developer console logs when unknown language found
They are happening whenever ULS triggers, or maybe whenever it loads. It's
pretty annoying.

See https://bugzilla.wikimedia.org/show_bug.cgi?id=45047

Change-Id: Ia58083f02d61e3b621112352e88d9e7cbfb2f0c0
2013-11-25 20:08:40 +05:30
Santhosh Thottingal 006cd82a06 Merge branch 'master' of github.com:wikimedia/jquery.uls 2013-11-15 15:17:58 +05:30
Santhosh Thottingal 623cdb605a Validate whether the language from API is known while trying to display
See https://bugzilla.wikimedia.org/show_bug.cgi?id=54725

Change-Id: Ie77f7cd02d37338a6b65db653c2ba3b35906dac0
2013-11-15 15:15:00 +05:30
Santhosh Thottingal e43994d77d Optimize the search and worldmap svgs
Change-Id: Iefbf6b1019eee52fd7beb95d8ec96d83101c28d3
2013-11-08 14:22:22 +05:30
Santhosh Thottingal cca67a0e11 Merge pull request #117 from pauginer/optimize-lang-icon-svg
Optimize language icon SVG
2013-11-08 00:44:54 -08:00
Santhosh Thottingal be085a4ef8 Merge pull request #116 from Nikerabbit/master
Optimize png images with optipng -o7
2013-11-08 00:23:34 -08:00
Santhosh Thottingal 49d2c3a722 Merge branch 'master' of github.com:wikimedia/jquery.uls 2013-11-05 19:50:34 +05:30
Santhosh Thottingal 49497d7078 Avoid overriding grid css for language list
Change-Id: I7606c5af716f2094bc1766a95123a68413634c91
2013-11-05 19:49:38 +05:30
Santhosh Thottingal 22475812b1 Move the autonym font to example instead of making part of jquery.uls
Change-Id: I1fa119ef3a89f34e1fde18712d4e267d174869c8
2013-11-01 14:55:44 +05:30
Santhosh Thottingal 2fff36c588 Merge pull request #115 from Nikerabbit/master
Reduce data size a bit by using unescaped unicode
2013-11-01 02:01:36 -07:00
Santhosh Thottingal 5444e17727 Avoid 'recalculate style' by conditionally change classes while scrolling
Change-Id: I71b42f9f974a1367700283ad55013e9e6a036827
2013-11-01 11:08:15 +05:30
Santhosh Thottingal a985d33d4b Use attr and prop consistently
Change-Id: If650d07686cafb6fceba60186843b5599404846c
2013-11-01 10:47:16 +05:30
Santhosh Thottingal 9ae403b671 Remove unnecessary object instance
Change-Id: I078a3a107d154bbcba7e1d49cbd6470b026ff869
2013-11-01 10:45:46 +05:30
Santhosh Thottingal 522b14fb23 Use text() instead of html() to set language names
Change-Id: I1374ac3ed9273302ea268596918a72c6b7a48579
2013-11-01 10:33:36 +05:30
Santhosh Thottingal 61f7bce6b3 Update Autonym font
Change-Id: I90f8791c4d05cf6a70fafc4dee62e50c5efd4b39
2013-10-23 20:19:56 +05:30
Santhosh Thottingal c5b11eabc9 Merge pull request #106 from siebrand/3
Update code formatting
2013-10-23 06:38:37 -07:00
Santhosh Thottingal a22781ff89 Merge branch 'kk-arab-autonym' of github.com:amire80/jquery.uls into amire80-kk-arab-autonym
Conflicts:
	src/jquery.uls.data.js

Change-Id: I56e485c5fc3a8d4eef9d44196d9fa4aa450e4b29
2013-10-23 19:06:46 +05:30
Santhosh Thottingal a48123ef1e Update Autonym font
Change-Id: I709ac5c90e50f4dab34b04a6befc4331ae9ebb24
2013-10-20 11:27:40 +05:30
Santhosh Thottingal e83494cab1 Formatting fixes
Change-Id: I75173f09527f84419d1b807e9e33ff673e0f5d1c
2013-10-17 14:50:09 +05:30
Santhosh Thottingal 1b5520432f Merge branch 'bug-39925' of github.com:MatmaRex/jquery.uls into MatmaRex-bug-39925 2013-10-11 20:45:36 +05:30
Santhosh Thottingal 9dddc411e9 Updated Autonym font
Change-Id: I6f18b97682b88c90d2362ebf954d614ea695ce78
2013-10-11 12:00:05 +05:30
Santhosh Thottingal b1d01d913e Updated Autonym font
Change-Id: I8a2f58283f0063693181c8e13f56cc7758a80c47
2013-10-07 17:02:37 +05:30
Santhosh Thottingal e54d85a124 Use Autonym font for autonyms
Change-Id: I5224cd020a6c6ba4f52f2be3a318216111b39394
2013-09-15 14:48:36 -07:00
Santhosh Thottingal 33ec9285e3 Use events instead of callbacks for success or no results
Allows extension users to bind for this event, also reduces callbacks

Change-Id: I14cc6d51ad23432956e3ea3275c72db26d71a8c8
2013-08-15 12:16:12 +05:30
Santhosh Thottingal d40c160cf6 Merge pull request #107 from kartikm/master
Fix spelling mistakes
2013-08-04 23:41:36 -07:00
Santhosh Thottingal ab9b01444f Update to latest grunt
Change-Id: I69701a230426af9fa22d3cd312cb24bdc6cf5072
2013-08-01 15:13:00 +05:30
Santhosh Thottingal 6d92fa3a36 Update README.md 2013-08-01 10:38:45 +05:30
Santhosh Thottingal 31888278ca Merge pull request #103 from siebrand/jquery-1.10.1
Update to use jQuery 1.10.1
2013-07-08 02:16:56 -07:00
Santhosh Thottingal 8ea5e8d2a3 Merge pull request #102 from amire80/semicolon
Add missing semicolon
2013-07-08 00:56:10 -07:00
Santhosh Thottingal 7c47112ae6 Fix: IE 8 not displaying the section titles for language lists
Changed the way those elements were constructed using jQuery

Change-Id: Ib2b7f454dd0cc1ff38342cf7cc2c6c73a4796c6c
2013-06-12 10:55:32 +05:30
Santhosh Thottingal fa667f0c14 Improve the scroll to view port logic
Do minimal scroll when top of the window is out of view

Change-Id: I8a2eb01451961655b651d53763356bd7e0aa5abf
2013-06-12 09:02:09 +05:30
Santhosh Thottingal 5f2b646c42 Do not propagate enter event to parent page elements from ULS search box
Change-Id: I18b8b746ed8bff2b0e06a8b05a2c6e69c7899293
2013-06-10 14:34:08 +05:30
Santhosh Thottingal 05e34d5dfa Fix two js error possibilities
Change-Id: I92ed487e7b5c70ef7851575eec676276e1ea905b
2013-06-10 14:33:17 +05:30
Santhosh Thottingal 5541608278 Smooth scrolling for ULS window to viewport
provide a jquery plugin function $.fn.scrollIntoView

Change-Id: Id0e5d3b385a13ab38089f8ae82e886c29a35e27a
2013-06-05 17:54:41 +05:30
Santhosh Thottingal db87f74096 Scroll the window to view
Change-Id: I13afd396007f951c105156373ea0c961ec4e712d
2013-05-31 14:38:08 +05:30
Santhosh Thottingal 2507438b29 Merge pull request #96 from pauginer/adjust-height
Adjusted language list height
2013-05-30 23:33:33 -07:00
Santhosh Thottingal 9a98249d2e Merge branch 'master' of github.com:wikimedia/jquery.uls 2013-05-24 17:16:40 +05:30
Santhosh Thottingal dceb664b04 Clear the search once a search and selection is done
See https://bugzilla.wikimedia.org/show_bug.cgi?id=48151

Change-Id: I7b354835c7ff438bb665ca6f9b62da6ff5059e1c
2013-05-24 17:12:54 +05:30
Santhosh Thottingal bc23e213b2 Merge pull request #83 from amire80/bug_42383
Don't ignore backspace in the search box
2013-04-11 03:39:34 -07:00
Santhosh Thottingal fc110f324e Merge branch 'master' of github.com:wikimedia/jquery.uls 2013-03-26 09:30:10 +05:30
Santhosh Thottingal b804a6dee7 Merge pull request #81 from pauginer/compact-version-styling
Small CSS adjustments for compact mode
2013-03-25 21:00:50 -07:00
Santhosh Thottingal 61256a4dbc Load jQuery 1.8.2 from CDN
Change-Id: I5c648c799678c488f105b9132dd94d64d4b82dce
2013-03-26 09:28:19 +05:30
Santhosh Thottingal bdcff98935 Merge branch 'master' of github.com:siebrand/jquery.uls into siebrand-master
Change-Id: I3795440ca3306fd5c1c16ffc3c247b0cf2a528d8
2013-03-26 09:28:06 +05:30
Santhosh Thottingal 0340e609a0 Expose compact mode as an option
* some minor space cleanup
* Also close the ULS window when clicked outside

Change-Id: I06b465926196f79e47990e80e3b23f5a16474ba3
2013-03-15 14:57:19 +05:30