Amir E. Aharoni
bdbff7919e
Changing the writing system and the autonym for Ottoman Turkish
2014-04-25 17:07:27 +03:00
Ed S
f0be8b5425
Consistently use this when scope allows it
...
We have uls = this for scoping, but then we randomly switch between the two, even when 'this' is allowed. We only need to used the local variable in un-proxied anonymous functions.
2014-04-22 14:59:46 -07:00
Ed S
2c0f4e1114
Only use default pos if top/left are undefined
...
Allows 0 (which is falsey) to be passed as an offsets. Fixes #141
2014-04-22 00:23:38 -07:00
Ed S
ad1be8c0af
Always close with 'cancel' method
...
So that the onCancel callback is useful. Fixes #142
2014-04-22 00:14:39 -07:00
Niklas Laxström
4354079ff4
Regenerate jquery.uls.data
2014-04-12 15:29:13 +03:00
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
J Crowgey
91f39063f2
updated jason file after modifications to langdb.yaml
2014-03-08 16:35:54 -08:00
Niklas Laxström
5b6862745b
Add rmf to langdb
2014-03-05 13:44:27 +00:00
Santhosh Thottingal
fd81a809a7
Merge branch 'master' of github.com:wikimedia/jquery.uls
...
Change-Id: I8270730779a194796ded1c1c82fe48686866c075
2014-03-03 15:07:06 +05:30
Niklas Laxström
6676222ab0
Lojban to lower case
...
Reported by Evropi on IRC
http://www.lojban.org/publications/level0/brochure-utf/overview.html
2014-03-03 09:04:32 +02:00
J Crowgey
38b3780fa5
added dxʷəlušucid [ISO:639-3:lut] to langdb.yaml and updated jquery.uls.data.js wuth ulsdata2json.php
2014-03-02 21:26:29 -08:00
Kartik Mistry
83bd524b63
Add EU too for ota.
2014-02-05 10:36:42 +05:30
Kartik Mistry
40e3a946d8
Updated jquery.uls.data.js file
2014-02-05 10:20:41 +05:30
Amir E. Aharoni
d8fc3d4b9e
Remove double scrollTop call
2014-01-06 13:30:53 +02:00
Amir E. Aharoni
2d93a37019
When clicking a region, scroll only the list and not the whole page
...
Downstream bug:
https://bugzilla.wikimedia.org/show_bug.cgi?id=59175
2014-01-06 11:45:29 +02:00
Niklas Laxström
78e9b83c6b
Make ULS language selector appear faster after clicking trigger
...
* Removed unused class end.
* Class uls-lcd-region-section was used in two different elements,
retained it on the outer one.
* Build a list of languages per region, once done render the regions at once.
* Use direct dom manipulation in hot spots.
* Use shorter selectors like children instead of find and dropping the tag name.
* Fixed mismatch when there were no results and when the message was shown.
* Less flickering by not hiding or showing regions unnecessary
* Cache the common languages "quicklist"
* Added itemsPerColumn as an option
Reduces time used to show language selector after clicking the trigger on my
machine from about 1.8s to about 380 ms (JS execution times, actual times are
about the same but little bigger. The actual rendering is now less than 100ms,
the rest is other setup overheard and $.fn.scrollIntoView which can take many
hundreds of milliseconds.
2013-12-20 10:31:04 +00: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
Amir E. Aharoni
09aeb8e29a
Update the Autonym for 'cu'
...
Reported downstream in the Autonym repository:
https://github.com/santhoshtr/AutonymFont/issues/44
2013-12-03 20:19:21 +02:00
Siebrand Mazeland
520e1b1181
Suppress JSHint double quote warnings in jquery.uls.data.js
2013-12-03 13:59:46 +01:00
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
Niklas Laxström
9d77cfb76f
Fix typo
2013-11-19 11:16:14 +00:00
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
49497d7078
Avoid overriding grid css for language list
...
Change-Id: I7606c5af716f2094bc1766a95123a68413634c91
2013-11-05 19:49:38 +05:30
Niklas Laxström
67cc85f5ee
Reduce data size a bit by using unescaped unicode
2013-11-01 08:45:32 +00: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
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
Kartik Mistry
6107318712
Merge pull request #113 from wikimedia/autonymfont
...
Autonym font
2013-10-17 21:42:48 -07:00
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
Siebrand Mazeland
658914a984
Update code formatting
2013-10-08 23:59:40 +02:00
Kartik Mistry
0e0cb89c75
Updated uls.data.js
2013-10-07 17:31:13 +05:30
Amir E. Aharoni
d8fdcd4baf
Corrected the Unicode character in the Arab Kazakh autonym
2013-10-02 21:57:15 -07:00
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
Siebrand Mazeland
078448a659
Update code formatting
...
Changes suggested by CodeSniffer.
2013-08-02 15:38:12 +02:00
MatmaRex
5c6c24d314
RegionSelector: Scroll to appropriate area instead of rebuilding the list
...
This has been suggested on bug 39925.
2013-07-09 17:07:02 +02:00
Amir E. Aharoni
601a5256b8
Add missing semicolon
2013-07-08 00:23:54 +03:00
MatmaRex
c78371ff68
Use .detach() to keep jQuery events and data associated with elements
...
.remove() helpfully kills them all.
2013-06-27 16:35:02 +05:30
MatmaRex
148d43bf44
Restore the events jQuery helpfully removes
2013-06-27 16:34:49 +05:30
MatmaRex
8a1e3eb18e
Remove lazyload functionality entirely
...
It was merely a stopgap solution to the problem of the dialog taking
forever to load. With that problem solved all of this awful code is no
longer needed.
2013-06-27 16:31:50 +05:30
MatmaRex
8341bb8e21
Disable lazyload for language list
...
The loading should be fast enough now after Id9397631 is merged,
taking no more than a second or two to render entirely. We could
consider showing a spinner while it's loading, but it doesn't seem
necessary.
This makes bug 39923 invalid.
2013-06-27 16:30:17 +05:30
MatmaRex
e1d65006dd
RegionSelector: Avoid reflows when generating the list
...
Every time an item is added to the list - 387 times for me - we
shuffle elements around and add at least one new one. This causes
browsers to trigger style recalculation (to figure out which styles
apply to elements with such and such classes) and content reflows
(how the text and elements are wrapped to fit available width).
We can avoid this by simply detaching the parent element from the DOM
tree and attaching it back once we're done - this make it only trigger
one recalculation and one reflow.
In my profiling on Opera on a Thinkpad T60 (with lazy-loading
disabled), these two steps took respectively around 600ms and 400ms.
Now they're down to around 50ms each.
2013-06-27 16:28:04 +05:30
Amir E. Aharoni
0e0098fc3b
Redirect fil language (Filipino) to tl (Tagalog)
2013-06-19 11:30:29 -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