Commit Graph

104 Commits

Author SHA1 Message Date
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
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
5e66a8a163 Fixed issue #27 - Clicking on language links goes to "#"
Change-Id: I8f675a00dc697540df4e011cdb58e1b423b9f191
2012-11-08 12:14:57 +05:30
Brion Vibber
5650491b92 fix bogus char in 'español de America Latina' 2012-11-07 16:41:20 +05:30
Brion Vibber
5ec59b9874 typo fix in comment 2012-11-06 18:02:29 +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
Siebrand Mazeland
48471d02a2 Update autonyms for es-419 and es-formal
Fixes issue 17.
2012-10-24 10:46:28 +02:00
Amir E. Aharoni
9aa9f3ee01 Replaced the deprecated languagesInScripts function 2012-10-15 16:26:51 +02: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
Amir E. Aharoni
77e62c99a5 Changed $( this ) into meaningful variables 2012-10-08 17:34:35 +02:00
Amir E. Aharoni
f14073a21a Rename the variable that to lcd 2012-10-08 17:22:01 +02:00
Amir E. Aharoni
2e22c5c550 Initial whitespace cleanup 2012-10-08 17:04:05 +02: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
Amir E. Aharoni
c40caf4a29 Update the remaining calls to deprecated functions 2012-10-08 08:27:50 +02:00
Amir E. Aharoni
faeac72491 .languagesByScript* -> .getLanguagesByScript* 2012-10-08 08:13:34 +02:00
Amir E. Aharoni
bd355b249d .allRegions -> .getAllRegions 2012-10-08 08:13:34 +02:00
Amir E. Aharoni
d74d9b003b .autonyms -> .getAutonyms 2012-10-08 08:13:34 +02:00
Amir E. Aharoni
5e16abf26d .autonym -> .getAutonym 2012-10-08 08:13:34 +02:00
Amir E. Aharoni
7d48ec230b .regions -> .getRegions 2012-10-08 08:13:34 +02:00
Amir E. Aharoni
17f525f510 Replace .script with .getScript 2012-10-08 08:13:34 +02:00
Amir E. Aharoni
c007ba3427 (bug 39963) Add "get" to function names
Kept the old names and gave them simple deprecation marking.
2012-10-08 08:13:34 +02:00
Amir E. Aharoni
972247b895 Remove unecessary whitespace 2012-10-07 17:17:36 +02:00
Amir E. Aharoni
97194de047 Do nothing if the clicked region is already selected
Supposed to fix bug
https://bugzilla.wikimedia.org/show_bug.cgi?id=39932
2012-10-05 08:38:43 +02:00
Santhosh Thottingal
ca7ba74e5e Merge pull request #5 from amire80/cldr_handling_updates
CLDR handling updates
2012-09-24 17:46:48 -07:00
amire80
9ce06d2112 Whitespace in jquery.uls.data.utils.js 2012-09-24 17:34:53 -07:00
amire80
72fe9f1e82 Update ulsdata2json.php for cleaner codes handling
Add supplementalData.xml to .gitignore.
Tweaks to make CLDR codes usable in ULS.
2012-09-24 17:32:22 -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
amire80
7f16137efc Fix whitespace 2012-09-24 16:51:03 -07:00
amire80
f9e3e148e3 Add basic support for dir and lang attributes for autonyms
Added a util function for getting the language's direction.

Added lang and dir attributes for every language item in the list.
2012-09-24 16:34:06 -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
2bdc515930 Correct the jquery object for i18n
Change-Id: Ic6fc68f27f9944d869206076951e3b7cdaac6f07
2012-09-22 10:05:01 -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
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
Nikerabbit
ccbd1dcdde Merge changes I83d4808a,If8ea8c1f
* changes:
  JsHint fixes - Move the invocation into the parens that contain the function.
  Fix Bug 39096 - Narayam compatibility with ULS
2012-09-07 11:07:10 +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
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
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
Amir E. Aharoni
da89d0088b (bug 39946) Add Portuguese to WW
Change-Id: I1b54971ae4e4d1ec9e1eac98a46291504d53bb61
2012-09-03 20:04:46 +03:00