Commit Graph

195 Commits

Author SHA1 Message Date
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
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
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
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
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
Amir E. Aharoni
452994efa5 Added the Syriac language 2013-05-21 10:00:52 +03:00
Amir E. Aharoni
64cc7969a7 Use the supplied position values instead of hardcoded 2013-04-26 16:11:12 +03:00
Liangent
81d8994115 wuu (吴语) should AS (Asia) instead of EU (Europe). 2013-04-26 14:35:57 +08:00
Amir E. Aharoni
986831b124 Add Zyyy for an undetermined script and use it accordingly 2013-04-25 18:10:45 +03:00
Niklas Laxström
d0d66ddc36 Merge pull request #88 from amire80/afterShowing-hook
Add an onVisible hook
2013-04-25 05:10:17 -07:00
Amir E. Aharoni
6309d1889b Comments format 2013-04-25 14:48:37 +03:00
Amir E. Aharoni
a568b3244e Rename the hook to "visible" and add documentation 2013-04-25 13:29:25 +03:00
Amir E. Aharoni
b28bed9bb5 Add an afterShowing hook
A hook that can optionally run after the ULS menu is shown.
There are things that cannot be done in ready(), because
the style may not have been initialized yet.
2013-04-23 22:43:14 +03:00
Amir E. Aharoni
851e2e84bc Remove an extra var statement 2013-04-23 17:56:59 +03:00
Amir E. Aharoni
62cab27eb2 Leave only one var statement per scope 2013-04-22 14:40:12 +03:00
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
Amir E. Aharoni
d410338c93 Don't ignore backspace in the search box 2013-04-10 18:57:20 +03:00
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
Siebrand Mazeland
356a074fd6 Make code analyzer ignore the unused assignment
It is used, as the comment above explains.
2013-03-15 03:26:07 +01:00
Amir E. Aharoni
49f623c61f Fix Pali language name 2013-02-19 00:15:20 +05:30
Siebrand Mazeland
66d84936f9 Merge pull request #74 from amire80/coding_conventions
Coding conventions, cleanup
2013-02-07 21:01:24 -08:00
Pau Giner
7e800eb836 Settings at the bottom of the ULS
Moves the settings block at the bottom of the ULS dialog in order
to distinguish more clearly the selection and configuration regions.
2013-02-06 10:35:48 +01:00
Amir E. Aharoni
e40ca2e885 Whitespace, JSHint, removed unused function 2013-01-13 23:32:40 +02:00
Amir E. Aharoni
9147af93d7 JSHint, whitespace, quotes 2013-01-13 23:24:47 +02:00
Amir E. Aharoni
31cd276019 JSHint cleanup 2013-01-13 23:20:05 +02:00
Amir E. Aharoni
9695cc1b68 Better adherence to coding conventions 2013-01-13 23:05:40 +02:00
Amir E. Aharoni
44ed95ccdb Merge branch 'use_strict_data' into 2013-01-09-fixes 2013-01-09 13:14:50 +02:00
Amir E. Aharoni
30165c19c7 Merge branch 'prevent_dupes' into 2013-01-09-fixes 2013-01-09 13:14:09 +02:00
Amir E. Aharoni
8b4c5444b8 Merge branch 'no-norsk' into 2013-01-09-fixes 2013-01-09 13:13:19 +02:00
Amir E. Aharoni
66a50931a5 Prevent appearance of redirects in the rendered list
utils.getLanguagesByScriptGroup() runs on the object's languages
property and not on all the langdb languages. This caused
the redirects to be counted as languages. I fixed this,
and added a test to prevent it.

Also update JS langdb, because it went out of sync in of
the previous commits.
2013-01-09 12:59:58 +02:00
Amir E. Aharoni
989c079ad6 Change region of frc to America
This is Cajun French, which is only spoken in America and not Europe.
2013-01-08 22:45:09 +02:00