Santhosh Thottingal
38d5826b72
Remove all deprecated methods
...
Change-Id: I8f6507f264ace851483d317af38733be46c51091
2012-12-24 16:18:26 +05:30
Santhosh Thottingal
c5d2d19e1e
Merge pull request #55 from amire80/langdb_aliases_cleanup
...
Add basic support for redirects
2012-12-24 02:32:32 -08:00
Santhosh Thottingal
b34cbbe9d2
Limit the grid to 'grid' class
...
Change-Id: I60dd826ddee0861c05bc6b0cadc8bdc1eb3a6488
2012-11-28 14:59:56 +05:30
Santhosh Thottingal
d0ef38c1e2
Donot close when clicked outside
...
Change-Id: Ib94423e8c26f69cdba460e21e9bcaee1a436e187
2012-11-21 17:33:16 +05:30
Santhosh Thottingal
9938c9685e
minor whitespace fix
2012-11-21 17:17:16 +05:30
Santhosh Thottingal
cbc8d3b2c0
Merge branch 'master' of github.com:wikimedia/jquery.uls
2012-11-21 17:13:32 +05:30
Santhosh Thottingal
b3a3f48c3b
On show hide any other ULS menus visible
2012-11-21 17:09:12 +05:30
Santhosh Thottingal
8f15d97ab4
Merge pull request #46 from pauginer/region-cursor
...
Cursor adjustment for regions in the 'no found' view
2012-11-20 03:40:39 -08:00
Santhosh Thottingal
ee26fe514c
Merge pull request #41 from siebrand/master
...
Update to jQuery 1.8.3.
2012-11-19 01:37:06 -08:00
Santhosh Thottingal
04edfa90c8
Ignore control characters in typeahead
...
Fix https://bugzilla.wikimedia.org/show_bug.cgi?id=40171
2012-11-19 12:12:25 +05:30
Santhosh Thottingal
5626a4cf92
Some minor changes for code readability
2012-11-19 11:15:44 +05:30
Santhosh Thottingal
b7bc685d80
Merge pull request #38 from amire80/cleanup/2012/11/16
...
Cleanup/2012/11/16
2012-11-16 04:24:04 -08:00
Santhosh Thottingal
641218f624
Remove href attributes
...
People like to middle click -
https://bugzilla.wikimedia.org/show_bug.cgi?id=41988
2012-11-14 20:11:24 +05:30
Santhosh Thottingal
8c3b61b1a1
Fix issue #32 - Clicking a region on map sets focus in search bar; onscreen keyboard covers list
...
Change-Id: I15703614b5fdb2201f7dcbfd47a5095e033032f3
2012-11-13 14:22:10 +05:30
Santhosh Thottingal
38b870dfe4
Address review comments by Niklas in MW gerrit
...
https://gerrit.wikimedia.org/r/#/c/32865/
Change-Id: I7e9e25c3f62bc577b1483f5035e88327a12837c0
2012-11-11 12:48:45 +05:30
Santhosh Thottingal
cff31e7abb
Fix issue #31 - Add onCancel callback
...
Change-Id: I207b60846a899912dcc5f79f92e9b1ad75e525a3
2012-11-10 17:52:44 +05:30
Santhosh Thottingal
642dd3c8cc
Remove deprecated $.browser
...
Fixes issue #33
Change-Id: Idda5d77293baedf8d93b70a146a545ff6986aaa5
2012-11-10 17:09:57 +05:30
Santhosh Thottingal
0be1e38d14
Fix issue #24 - Search results replaced with full list when scrolling
...
Change-Id: Iba3a798c9b4980943aded1ed145081fecc0367e3
2012-11-08 15:43:36 +05:30
Santhosh Thottingal
06384a02e4
Remove unused variable
...
Change-Id: I41154e6c79b215945ccefe729d2a50b38d67f5c2
2012-11-08 15:04:06 +05:30
Santhosh Thottingal
2c9a2b6517
Add an example for limiting the number of languages to be searched/displayed
...
Change-Id: I29450e9669a41b7ee6f5e3a38ab682650a60e745
2012-11-08 13:08:11 +05:30
Santhosh Thottingal
5e66a8a163
Fixed issue #27 - Clicking on language links goes to "#"
...
Change-Id: I8f675a00dc697540df4e011cdb58e1b423b9f191
2012-11-08 12:14:57 +05:30
Santhosh Thottingal
0717a797da
Merge pull request #30 from brion/espanol-fix
...
issue 25: fix bogus char in 'español de America Latina'
2012-11-07 22:35:58 -08:00
Santhosh Thottingal
60f07e618c
Merge pull request #28 from brion/typo-fix
...
typo fix in comment
2012-11-06 09:13:28 -08:00
Santhosh Thottingal
c905fe133f
Update README.md
2012-10-28 15:28:51 +05:30
Santhosh Thottingal
642668d0ae
Introduce lazyload option with default value true.
...
This can be set false when language list is very small.
Change-Id: I024f01a2a62f0d0def553e2d6f7a3fdcce1a7968
2012-10-26 10:53:13 +05:30
Santhosh Thottingal
5c6d244c97
Merge branch 'master' of github.com:wikimedia/jquery.uls
2012-10-26 10:37:32 +05:30
Santhosh Thottingal
27b8babfa9
Use lazy loading of regions only where language list is big
2012-10-26 10:29:21 +05:30
Santhosh Thottingal
1907200f10
Merge pull request #18 from siebrand/master
...
Fix for issue 17
2012-10-24 05:56:12 -07:00
Santhosh Thottingal
c883c3a774
Avoid jumping to WW while scrolling up.
...
Correct the precision of scroll top by taking padding into account.
Fixes https://bugzilla.wikimedia.org/show_bug.cgi?id=39224
Change-Id: I988e9a09018bf2d5c27f11d21947e036c79f56b9
2012-10-24 18:18:18 +05:30
Santhosh Thottingal
761c845ad2
Fix ULS: Pointer style target should match click target
...
Reported at https://bugzilla.wikimedia.org/show_bug.cgi?id=41314
Also removed unwanted a tag
Change-Id: Id3eeabf76a12a8ec2c0d38b27b868216a2f785e0
2012-10-24 12:01:07 +05:30
Santhosh Thottingal
934cc6136b
Merge pull request #15 from pauginer/master
...
Small CSS adjustments to emphasize search bar and connection to the list.
2012-10-17 04:49:30 -07:00
Santhosh Thottingal
6c6794ae0c
Merge branch 'master' of github.com:wikimedia/jquery.uls
2012-10-17 14:21:21 +05:30
Santhosh Thottingal
568c626abe
Update grunt.js to use grunt-contrib-copy instead of grunt-cp
2012-10-17 14:21:06 +05:30
Santhosh Thottingal
27a522cbfc
Update grunt.js to use grunt-contrib-copy instead of grunt-cp
2012-10-17 14:15:41 +05:30
Santhosh Thottingal
8fdb94d1f0
Merge pull request #14 from amire80/2012/remove_deprecated_languagesInScripts
...
Replaced the deprecated languagesInScripts function
2012-10-15 08:45:52 -07:00
Santhosh Thottingal
983cd129cf
Do not fail when jquery.i18n is not present
...
Change-Id: Ieed87c23cac842e8d9f6de54b1d2d4af9586ce4f
2012-10-15 19:09:39 +05:30
Santhosh Thottingal
04c5cc1e23
Merge branch 'master' of github.com:wikimedia/jquery.uls
...
Conflicts:
examples/index-i18n.html
2012-10-09 19:44:01 +05:30
Santhosh Thottingal
76094b8e03
i18n the placeholder text in language selector and correct the onready
...
callback
2012-10-09 19:41:32 +05:30
Santhosh Thottingal
e5880573a6
Merge pull request #12 from amire80/2012/bug_39224/stabilize_scrolling
...
Refactoring scrolling code
2012-10-08 08:48:52 -07:00
Santhosh Thottingal
dfe6fcbb13
Merge pull request #8 from amire80/2012/bug_39932/no_cyclical_region_click
...
Do nothing if the clicked region is already selected
2012-10-08 02:35:30 -07:00
Santhosh Thottingal
ff969c09fb
Merge pull request #11 from amire80/2012/10/08/css_lint
...
Fix a few trivial CSS lint issues
2012-10-08 02:08:53 -07:00
Santhosh Thottingal
96a4303202
Merge pull request #9 from amire80/2012/bug_39963/cleanup_function_names
...
Rename functions in uls.data.utils
2012-10-08 02:06:28 -07:00
Santhosh Thottingal
f35d20128f
Merge pull request #10 from amire80/santhosh-tests
...
More QUnit tests
2012-10-07 22:59:59 -07:00
Santhosh Thottingal and Amir E. Aharoni
fc28cfeb3b
Add qunit tests
...
Importing the tests from MediaWiki gerrit
Change-Id: I2aec075b5ea04f927e2ee0a0e747334ba9efb4a0
2012-10-08 07:43:41 +02:00
Santhosh Thottingal
145dec9beb
Merge pull request #6 from pauginer/master
...
Making the world map lighter
2012-10-02 05:55:21 -07:00
Santhosh Thottingal
be118f1358
Add qunit tests
...
Importing the tests from MediaWiki gerrit
Change-Id: I2aec075b5ea04f927e2ee0a0e747334ba9efb4a0
2012-10-02 14:23:01 +05:30
Santhosh Thottingal
ca7ba74e5e
Merge pull request #5 from amire80/cldr_handling_updates
...
CLDR handling updates
2012-09-24 17:46:48 -07:00
Santhosh Thottingal
61649c567b
Merge pull request #4 from amire80/master
...
Starting RTL support (copied from Gerrit, except the tests)
2012-09-24 16:57:17 -07:00
Santhosh Thottingal
5f12a3d444
License and README
2012-09-23 21:46:30 -07:00
Santhosh Thottingal
9d988dbafe
Scroll improvements
...
* Load the next region when scroll reached half of the current
region
* Fix the scroll sync with region highlight in both up and down
scrolls
* Address Bug 39923 - Make scroll to next region more fluent
2012-09-23 21:35:37 -07:00
Santhosh Thottingal
9beee9697a
Localization updates and documentation
2012-09-23 13:09:51 -07:00
Santhosh Thottingal
2bdc515930
Correct the jquery object for i18n
...
Change-Id: Ic6fc68f27f9944d869206076951e3b7cdaac6f07
2012-09-22 10:05:01 -07:00
Santhosh Thottingal
2ce2718315
Build system updates
...
Handle i18n and images properly
Change-Id: Idbdf141601cb1dbd5110431982022e0481156645
2012-09-22 10:03:55 -07:00
Santhosh Thottingal
0781f022dd
Internationalize ULS
...
* internationalize ULS when jquery.i18n is present. Otherwise use the
fallback English interface
* Example with and without i18n
* Message files for few languages
2012-09-21 22:24:06 -07:00
Santhosh Thottingal
2ce74db801
Grunt updates and travis build integration
...
Change-Id: Ia479b903908f01e82750e9e35dff6c6aef6c36ae
2012-09-18 21:04:37 -07:00
Santhosh Thottingal
2deeb98f6c
Updated README
...
Change-Id: I527516ea52ffe3a1d28f3e4d386c50ed8b6acad1
2012-09-18 21:00:53 -07:00
Santhosh Thottingal and Niklas Laxström
0747e74365
User region names instead of region codes
...
* Till i18n is in place, use a workaround to show region names in
English
Change-Id: I6e14ab67600ad32263f04eb0aa6b931177425e5a
2012-09-09 07:50:16 +00:00
Santhosh Thottingal
f3967d9b11
Fix Bug 39096 - Narayam compatibility with ULS
...
* Correct the event propagation
* Narayam blue background prevents the autocomplete visible. Overriding
background color with transparent, but that does not look good. May be we
should consider this while designing jquery.ime
Change-Id: If8ea8c1f074cc20b743805953a3bd68da62cb55b
2012-09-07 11:06:30 +05:30
Santhosh Thottingal and Gerrit Code Review
442af47190
(bug 39833) Make language code search case insensitive
...
Change-Id: I67b98f058f969cd2fe9fa22085f8f781b29dce3f
2012-09-06 09:59:35 +00:00
Santhosh Thottingal
c83baac893
Fix Bug 39930 - Common languages not always shown in the Worldwide region
...
Change-Id: I764af7ad88cf79e9e07b96f899f352ad3082df45
2012-09-06 14:15:05 +05:30
Santhosh Thottingal
badd5c95ac
Fix the broken region links in 'noresults' screen.
...
It was commented out in some previous commits.
Also correct the region code of America from NA to AM
Change-Id: I6cec2560393134de1190291e1f49bc0ac4280af0
2012-09-05 18:15:45 +05:30
Santhosh Thottingal and Amir E. Aharoni
a0580a9746
Add grunt to jquery.uls
...
This library is supposed to be hosted outside WMF gerrit. So adding a
build, test system.
* Add js lint and css lint
* minifier for css and js
* css lint does not pass now.
Change-Id: Iaadfad786f5de4b2ab95e24d3ea4f1d21952af75
2012-09-05 15:03:54 +03:00
Santhosh Thottingal
298c91a68f
Misc jshint fixes
...
* Move the invocation into the parens that contain the function.
* unescaped regex
* Do not wrap function literals in parens unless they are to be
immediately invoked.
Change-Id: Ib3360f88fb7674af0e857d8a84a91fdac1fd8487
2012-09-04 16:02:28 +05:30
Santhosh Thottingal
f837ed904a
Fix Bug 39922 - The "No results found" view lacks suggested languages
...
noresultsview is part of uls.lcd now, moved the html template too.
Change-Id: I9aee0ab1b62e61c3ec0e2c89f7d07b7a4432ef33
2012-09-03 19:31:41 +05:30
Santhosh Thottingal
085f9f9e87
Fix Bug 39926 - Australia region inconsistent visibility
...
Removed AU region, using PA instead.
Change-Id: I088baf7de6d0c0d52a0cf42a159b6d3339793dcc
2012-09-03 18:44:25 +05:30
Santhosh Thottingal
5e86782803
Fix Bug 39829 - Language Selection does not work while using Language Code
...
This happens when you type language code and hit enter very fast, without
a pause. A matched language is not available when enter is hit, so it goes
noop.
Handled this special case by checking whether the input is a valid language
code and calling onselect on it.
Change-Id: Icaf809f8db8162264d990247a164449b02b2f418
2012-09-03 18:18:53 +05:30
Santhosh Thottingal
f37571a250
Fix Bug 39921 - World wide languages need not be repeated in all regions.
...
Change-Id: I4470a2a7976df17f6f0f8f97d15ce12163cc3c27
2012-09-03 18:10:31 +05:30
Santhosh Thottingal and Niklas Laxström
992c16a209
Fix Bug 39535 Recent languages in languages settings
...
* Refactor the code for frequent languages and introduce
mw.uls.getFrequentLanguageList
* Use it for showing previous languages in language settings
* Show the frequent/common language list in the language selector
opened from display settings.
Change-Id: Ic0f8ea6b9e9ba137b22649e8425fce8014ad456c
2012-09-03 08:46:47 +00:00
Santhosh and Gerrit Code Review
9f21cb06ce
Merge "Fix to allow using the ULS when it is bigger than the viewport"
2012-08-31 11:03:10 +00:00
Santhosh Thottingal and Amir E. Aharoni
035cfb08c4
Lazy loading of regions
...
Also adds landing page feature. But candidate list is hardcoded
for now. Example html file updated.
show method of lcd renamed to render.
Introduced a trigger searchclear
Introduced mw.uls.changeLanguage, setPreviousLanguages
getPreviousLanguages and getBrowserLanguage methods
Region groups re-numbered - from [4, 1, 2, 3] to [1, 2, 3, 4].
Change-Id: Iac1edf628708e6f40e41578df70d40c42f15289a
2012-08-30 14:26:57 +03:00
Santhosh Thottingal
f7c88feebb
Avoid jquery filter for the region div for each language
...
Keep it in an object and reuse.
Change-Id: I1a367132e9b99b4fc6b2b8ff4023f638e6bc183f
2012-08-21 17:56:22 +05:30
Santhosh Thottingal
d93612ced8
Bind the language links using jquery on and not in loop
...
Change-Id: Ic4d2dd2b06acae57060bced9938a219bf8cebd73
2012-08-21 17:44:23 +05:30
Santhosh Thottingal
c88b782371
Cache the region filter results
...
Change-Id: Ia303774d3c1171f3e8c1b3f7ca8b102c79e68300
2012-08-21 17:06:41 +05:30
Santhosh Thottingal
d72e97a065
Move regionfilter to a seperate javascript file
...
To lib/jquery.uls/src/jquery.uls.regionfilter.js
Change-Id: I5f4e424ff68d7a7ed6407f48ddf84cdadfe90a52
2012-08-21 16:20:03 +05:30
Santhosh Thottingal
ec04703d47
Fix the close button of ULS
...
Regression from I9d16cbac
Change-Id: Ib0a64a9d8909e10c6f83727d4056f663c49d7ec7
2012-08-20 10:15:34 +05:30
Santhosh Thottingal
b9ae3ea901
Fix region highlight when result is scrolled.
...
Regresssion from I48e2e167
Change-Id: Ibe7e49a21d5527ee56d466a68e19c051b0f6e39a
2012-08-20 10:12:05 +05:30
Santhosh Thottingal and Amir E. Aharoni
26b43a6d6f
Display Settings - ULS - Display settings navigation
...
Change-Id: I9d16cbac8f0f897378f769b0b98e48441503fe1a
2012-08-19 19:49:11 +03:00
Santhosh Thottingal and Amir E. Aharoni
9da90921c4
jQuery.uls bug fixes and keep template with the plugin
...
* The jQuery selectors should be referring to the menu for the current
ULS instance rather than querying on the page. This allows multiple
instances of ULS present in the page
* Keep the HTML template with the plugin. No more HTML added from hooks.
* Updated the example based on above change.
* Updated the hooks code.
* Some more documentation.
Change-Id: I48e2e167bc2c09b8653a142c50317c22e8ba1362
2012-08-19 18:29:37 +03:00
Santhosh and Gerrit Code Review
76648a9a9a
Merge "Fix bug 39417 - Scrollbars appear for ULS regions"
2012-08-16 09:27:44 +00:00
Santhosh Thottingal and Amir E. Aharoni
23393c0e8a
Position the language settings
...
* Expose two options: left and top
* Make the init script pass that.
* Introduce position method in jquery.uls
Change-Id: I21f4d956f1ed2c56528731ab09ecc6a89834f796
2012-08-15 21:25:16 +03:00
Santhosh Thottingal
10524816bb
Documentation for methods
...
Change-Id: I290a2019b80370d3ae462c63fa64abcdceb7c1e8
2012-08-15 20:10:28 +05:30
Santhosh Thottingal and Gerrit Code Review
169cf7b070
Merge "Visual prefix"
2012-08-15 06:10:20 +00:00
Santhosh Thottingal and Amir E. Aharoni
85373c1ac1
Introduce languages options to ULS
...
Default value of this option will be $.uls.data.autonyms().
It can be set to limit language selection to a set of languages.
Updated examples, used a config variable wgULSLanguages to set this.
Change-Id: Ia322cbdcdb14f08619d2e4df5b23e2702841d147
2012-08-15 08:52:46 +03:00
Santhosh and Gerrit Code Review
032e5632bb
Merge "Partly reverting the langdb"
2012-08-15 04:56:15 +00:00
Santhosh Thottingal and Amir E. Aharoni
aa798d9ca1
Fix Bug 38666 - When searching no specific region should be highlighted in the map
...
Clicking again on a region deselect it
When searching, remove selection from regions.
Change-Id: Ife70639a864f9d13d02406d1229316782a32ed3c
2012-08-14 22:46:48 +03:00
Santhosh Thottingal and Gerrit Code Review
fc41f15651
Visual prefix
...
Make sure that suggestion is not only prefix but also visually prefix.
Checks the ending character is pre-base vowel.
There might be characters with this property in non-indic languages, but
I am not aware of now.
Change-Id: I91abd4dee6c4349e901777ebd6972731808daf45
2012-08-14 19:28:53 +00:00
Santhosh Thottingal and Amir E. Aharoni
350c13844d
WebFonts integration with ULS display settings.
...
This does not add much functionality. That will come in
future commits.
This commit has many cleanup, refactoring on the display settings,
language settings code.
Change-Id: I7fbc3ebb9b67c1afd80f159c2d82cd2a1c6bea74
2012-08-14 18:01:25 +03:00
Santhosh Thottingal and Gerrit Code Review
9071b8ac47
Merge "Fix bug 38847 Clear suggested text when input no longer matches"
2012-08-09 15:48:02 +00:00
Santhosh Thottingal and Amir E. Aharoni
41271ccd17
Introduce display settings link at the top of ULS
...
Extend $.fn.uls render method to add additional rendering of display
settings link.
Add css for the new element.
Add display.png icon from the Agora icon set.
Change-Id: I7a29b4892be02526969b0dd786c74bdb7551c074
2012-08-09 16:25:16 +03:00
Santhosh Thottingal and Gerrit Code Review
b9f8ae6581
Fix bug 38847 Clear suggested text when input no longer matches
...
Change-Id: I6651f38830fcb54bf6b4290eeeedcf48841a8314
2012-08-09 10:23:22 +00:00
Santhosh Thottingal
e0e4c9e1b8
Always use autonyms for search results
...
Change-Id: Iacbaa78c9f66b0c754ac9faf9bb2752f95b35693
2012-08-07 19:24:46 +05:30
Santhosh Thottingal
6201e91071
Handling enter key in language filter
...
* if the search string is language code, select it
* else if the autocompletion available select it
* else select the first language matching the query
Change-Id: If66f5c547a471026b7b2aebcde3c3b056e1c2917
2012-08-07 18:13:27 +05:30
Santhosh Thottingal
926136c8b5
Fix issue: search strings like 't', 'a' are not giving results
...
There are languges starting with those letters, but without autonyms
Add a null check for undefined autonyms to prevent js error
Change-Id: I88a1d79b3bb23beac7238c1e8817cd6eac614613
2012-08-07 16:22:38 +05:30
Santhosh Thottingal
063805538b
Implement visual language grouping in ULS
...
Added a utility callback function to sort languages by autonym.
Added CSS fix for group separatos.
Change-Id: I73c7c6518a85e4ea7999be3ef92a121e877610e8
2012-08-07 13:42:20 +05:30
Santhosh Thottingal
299744c038
Do not perform full search on page load
...
Do it on first click.
Change-Id: I403aef108cf5d4993f6e8fbc9ebf372893e48e3d
2012-08-06 14:20:32 +05:30
Santhosh Thottingal
68386eef34
Fix a regression - region filter not working
...
Change-Id: I13261b96e75de601720f58eb3c045447034dd7b0
2012-08-06 12:32:41 +05:30
Santhosh Thottingal
8630ed98f3
Misc. performance tweaks
...
* Do not hit search API if there are results to show from front end
* Avoid the lcd exists check
* slightly reduce the timeout of search term typing
* show autofill for search api results too.
* correct the tooltip text of results.
Change-Id: Id102fbf3bc09eb926d9e36f125ed6291943007f9
2012-08-04 11:30:37 +05:30
Santhosh Thottingal
0a681a85fe
Rearranging Files
...
* Seperating standalone jQuery ULS plugin and extension related code
* lib/jquery.uls can be submodule, but not now.
Change-Id: I7d9cb47daa88dd1a27ceda602a08cab0073caf33
2012-08-03 12:24:04 +05:30