Commit Graph

453 Commits

Author SHA1 Message Date
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
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
Siebrand Mazeland
2eec9fae96 Localisation updates from https://translatewiki.net. 2013-12-17 08:55:43 +00:00
Niklas Laxström
69f3256fa2 Avoid title case 2013-12-13 13:40:55 +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
Siebrand Mazeland
4b612446fb Localisation updates from https://translatewiki.net. 2013-12-05 22:04:35 +00:00
Kartik Mistry
1aaf58067f Merge pull request #121 from amire80/update-cu-autonym
Update the Autonym for 'cu'
2013-12-03 19:45:42 -08:00
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
Kartik Mistry
1d98d61dc1 Merge pull request #120 from siebrand/7
Various fixes suggested by static code analysis
2013-12-03 05:11:12 -08:00
Siebrand Mazeland
520e1b1181 Suppress JSHint double quote warnings in jquery.uls.data.js 2013-12-03 13:59:46 +01:00
Siebrand Mazeland
84d763620f Use a single var statement 2013-12-03 13:56:54 +01:00
Siebrand Mazeland
9b3d64e7d7 Remove stray character in example file 2013-12-03 13:53:01 +01:00
Siebrand Mazeland
52cadffd06 Localisation updates from https://translatewiki.net. 2013-12-02 08:29:17 +00: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
Siebrand Mazeland
c62809ae2b Localisation updates from http://translatewiki.net. 2013-11-19 06:48:26 +00:00
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
Siebrand Mazeland
635f053deb Localisation updates from http://translatewiki.net. 2013-11-12 13:50:17 +00:00
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
Pau Giner
72c0bd29dc Optimize language icon SVG
Reduction in size of the SVG by removing unnecessary shapes and metadata.
2013-11-08 09:34:41 +01: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
Niklas Laxström
a4276bb18a Optimize png images with optipng -o7 2013-11-08 08:19:13 +00: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
Siebrand Mazeland
9c102a5505 Localisation updates from http://translatewiki.net. 2013-11-04 16:06:29 +00:00
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
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
Niklas Laxström
240c06da62 Merge pull request #114 from siebrand/6
Remove non-existing "-ms-linear-gradient"
2013-10-30 05:20:44 -07:00
Siebrand Mazeland
ac8aa2723c Remove non-existing "-ms-linear-gradient"
Per https://bugzilla.wikimedia.org/56138
2013-10-29 17:26:07 +01:00
Siebrand Mazeland
754501760f Localisation updates from http://translatewiki.net. 2013-10-27 19:29:01 +00:00
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
Siebrand Mazeland
80ff741949 Localisation updates from http://translatewiki.net. 2013-10-19 19:48:02 +00:00
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
Siebrand Mazeland
45c3f5d991 Localisation updates from http://translatewiki.net. 2013-10-14 09:00:47 +00:00
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
Kartik Mistry
5577b5cdd7 Merge pull request #112 from siebrand/5
Update code formatting
2013-10-08 19:41:51 -07:00
Siebrand Mazeland
658914a984 Update code formatting 2013-10-08 23:59:40 +02:00
Siebrand Mazeland
c18a57d7c9 Merge pull request #111 from kartikm/uls.data.updates
Updated uls.data.js
2013-10-07 05:12:11 -07:00