Commit Graph

494 Commits

Author SHA1 Message Date
Santhosh Thottingal
82fbfe62e7 Load jquery.ime only when user focus on editable fields
To reduce javascript size for page load.

Change-Id: Ibf2ccd5b5501720837051d6e268b122e8a9f8590
2013-07-30 14:18:55 +03:00
jenkins-bot
b0b1768771 Merge "Add Shapour font for Pahlavi script" 2013-07-26 22:42:43 +00:00
Amir E. Aharoni
56dd512725 Revert "Load jquery.ime only when user focus on editable fields"
This reverts commit 63d547915f.

Bug: 52115
Change-Id: I1d6b65622e8a103a8a892beacf268e77b9e1b2d0
2013-07-27 00:56:18 +03:00
Santhosh Thottingal
63d547915f Load jquery.ime only when user focus on editable fields
To reduce javascript size for page load.

Change-Id: I71928ac5149cbcf2cc75073fdf628403e6abe456
2013-07-26 16:08:35 +03:00
Santhosh Thottingal
d92c75518b Delay loading of language settings javascript
Load them when language settings is opened using cog or ULS icon click

Change-Id: I472497c549bff0fd578156fa0113dae2d6a7a7fb
2013-07-26 15:55:07 +03:00
jenkins-bot
b96e6ed20a Merge "Lazy initialization of language settings and ULS from interface triggers" 2013-07-26 12:32:42 +00:00
jenkins-bot
04342f86a8 Merge "Lazy initilization of language settings from ULS" 2013-07-26 11:20:09 +00:00
jenkins-bot
3ae89279fb Merge "Lazy initialization of language settings for IME menu" 2013-07-26 11:06:48 +00:00
Ebrahim Byagowi
b0b81f1d7f Add Shapour font for Pahlavi script
Bug: 44076
Change-Id: I4f04298628f799a60350707b6870efb16c6a9de0
2013-07-25 14:41:09 +00:00
jenkins-bot
49ef0058a4 Merge "Typo fix" 2013-07-25 12:32:31 +00:00
Santhosh Thottingal
81586572ab Lazy initialization of language settings and ULS from interface triggers
1. For interlanguage position, initialize language settings on first
click on cog
2. For personal toolbar position, initialie ULS on first click of
ULS trigger

Change-Id: Icda498f676d1d3ddaefad75fd9212150f6966666
2013-07-25 12:10:46 +05:30
Santhosh Thottingal
472432517a Lazy initilization of language settings from ULS
For personal toolbar position, initialize langauge settings only
after user clicks on the settings links

Bug: 48211

Change-Id: Ib3e2372e982de890db614a81c06fbbe170ce0d01
2013-07-25 12:10:38 +05:30
Ebrahim Byagowi
bebf6c4885 Adding Old Persian web font
Change-Id: I4ebabcd3c79b5507d87fc710dee8c986898e6c30
2013-07-25 09:39:22 +05:30
Santhosh Thottingal
eff459eea6 Lazy initialization of language settings for IME menu
Initialize it only when first time user clicks on it

In a page like Special:Translate where lot of input fields
appearing, the previous approach was adding many language settings
div to the page.

Bug: 48211

Change-Id: If063df6782c6a51ac77ed5531dfa253c7f3ddbc4
2013-07-24 11:12:01 +00:00
Santhosh Thottingal
1aafd31cf5 Typo fix
Change-Id: I496d137a706bd1672ea12f4d6d465d858a399794
2013-07-24 15:28:33 +05:30
jenkins-bot
36862734f2 Merge "Add the Gentium font" 2013-07-24 07:15:59 +00:00
Kartik Mistry
c0c748730f Add the Gentium font
Bug: 51159
Change-Id: Ie501b60778c02dcac6b1850643e2e75529380212
2013-07-24 10:12:54 +05:30
Santhosh Thottingal
7284215879 Fix javascript error with language fallbacks
Fallbacks are handled with ApiULSLocalization.

Bug: 51923

Change-Id: I9f68e0744bf0c730aa3a410901a9b536af7623fc
2013-07-24 09:50:02 +05:30
Santhosh Thottingal
f11ef736a4 Fix the logic of apply and cancel actions
* Refactored the Cancel button handler code to cancel method in
display settings and input settings.
* When the user makes changes in multiple modules and clicks the Cancel
button or closes the language settings after that, cancel the changes in
all the modules. See bug 50564.
* The Apply button was always active in input methods module. Fixed the
logic for that.
* Renamed the enableApplyButton method to markDirty in both modules.
* Introduced isDirty attribute to the modules for optimizing the Cancel
method to avoid unnecessary restore actions.
* More minor cleanup and documentation.

Bug: 50564

Change-Id: I71f527bfb7dd7f6724e4365371ac3e4fc0723ed6
2013-07-23 14:09:27 +03:00
Santhosh Thottingal
2159822145 Update jquery.i18n from upstream, use its default message store
In Iddef0805ab a custom message store was introduced for ULS, but
there were updates in jquery.i18n that allows us to use default
message store again.

(see https://github.com/wikimedia/jquery.i18n/pull/40)

Change-Id: I86cb7a44efa83e5811824cd1104c6be11b1e2925
2013-07-23 15:32:45 +05:30
Santhosh Thottingal
f144cd5c16 Fix regression of bf1d62ba4
https://gerrit.wikimedia.org/r/#/c/75076/ had multiple issues:
1. Selecting of input methods stopped working
2. With 'personal' position, ULS windows comes on every page click

Bug: 50559

Change-Id: I0cf815228760d27bca07acd58631713988659831
2013-07-22 11:25:30 +00:00
Santhosh Thottingal
bf1d62ba42 Close language settings when clicked outside
To make the behavior consistent with ULS langauge selection window.

This also avoid multiple language settings screen appearing in rare
case of using two entry points to access language settings one after
another.

Bug: 50559
Change-Id: I990eb6402085290df314db0a75235e0ad7b2fd55
2013-07-22 13:40:23 +05:30
Santhosh Thottingal
6ac12b6584 Better blacklisting of browsers using $.client
Change-Id: Ibc4d15008671700374fdc1e33d2e85f9899f9b35
2013-07-21 19:36:12 +03:00
Santhosh Thottingal
944c74c958 Update the previous UI and content font whenever font value changes
Bug: 50562
Change-Id: I1e89af19149a02ad4ed7a4a6b7f096c258258cf4
2013-07-19 10:40:29 +05:30
Santhosh Thottingal
a3bf6f7e3d Naming convention fix.
Change-Id: If1661a9c35fafb048b2a30b9fefbace7668e98d7
2013-07-19 10:20:31 +05:30
Siebrand
db2f5de7b3 Disable default web font for language code "ml" again.
This reverts commit 489b949aa9.

Part of resolving bug 51019.

Bug: 51019
Change-Id: Ib58e2d567e55f793c449295396989eaea6d10f5f
2013-07-16 08:33:56 +00:00
jenkins-bot
550698aa80 Merge "Help links for ime selector menu" 2013-07-16 06:21:59 +00:00
Santhosh Thottingal
28154206bf Remove jquery.i18n code that the ULS extension overrides
Instead of using the whole jquery.i18n code, use only required parts
that are not customized in MW ULS. For this define a new RL module
ext.uls.i18n.

Also refactor MW message store for jquery.i18n.

Change-Id: Idda9fe505428ade409d937314d7216ebb4232c36
2013-07-15 13:28:12 +00:00
Niklas Laxström
883e87ea56 Help links for ime selector menu
Change-Id: Ia6a0db9af25216f3d03c5130de96000141ccaa57
2013-07-15 13:24:12 +00:00
jenkins-bot
a14f941f48 Merge "Help links for input settings" 2013-07-15 13:23:46 +00:00
Niklas Laxström
da1baaf663 Help links for input settings
Bug: 42373
Change-Id: I30c8d6cbe916ac026ad70974755942c5bbea7162
2013-07-15 11:08:17 +00:00
Kartik Mistry
482a7488bf Update UnifrakturMaguntia font to latest version
Bug: 49510
Change-Id: I4227d31696a4d956cc5ea2ddf5df36eb0e8fe7d0
2013-07-15 11:33:12 +05:30
Kartik Mistry
9ae40d5910 Add free and open licensed font for Urdu script
Font homepage is not available, but Debian confirms that font is
licensed to GPL-2.

Also see: http://groups.yahoo.com/group/urdu_computing/message/1081

Bug: 46693
Change-Id: I249f5a36a620ef00235f674cba92a1615a4a785f
2013-07-15 10:50:05 +05:30
jenkins-bot
fd80ea5017 Merge "Add Canadian Syllabic font" 2013-07-15 04:30:22 +00:00
Kartik Mistry
aaa1c515e7 Add Canadian Syllabic font
Bug: 42421

Change-Id: I3d791c3752cf73c33b74ee6f531b7fb605419560
2013-07-15 09:47:34 +05:30
S Page
234692ba6c Stop uls-previous-languages cookie varying by path
Set path to '/' otherwise you get one cookie for /w and another for
/wiki locations.

Bug: 49155

Change-Id: I4756fdf06b0580b5b57a41cd771b94723bb5cdbf
2013-07-12 13:17:31 -07:00
Siebrand
489b949aa9 Revert "Disable default web font for language code "ml""
No longer needed given bug 51019.

This reverts commit 13dcfc9abc.

Change-Id: Iae57333f4e0a22a371e83491a73e4685e9c044ff
2013-07-09 09:13:53 +00:00
Siebrand Mazeland
13dcfc9abc Disable default web font for language code "ml"
Bug: 49894
Change-Id: I33c08203f19688ffdf00e7ca3da23a9dd1fb05aa
2013-07-09 09:01:58 +02:00
Ori Livneh
1603fd97a8 Use $.Callbacks to queue events until EL has loaded
This patch provides a workaround for bug 50746. It modifies mw.uls.eventLog so
that it does not directly attempt to log events but instead adds them to a
$.Callbacks('memory once') queue. If EventLogging is not enabled, the Callbacks
object never fires. If EventLogging is enabled, it is requested via
mw.loader.using, but only after $(document).ready. This prevents ResourceLoader
from attempting to inject it via document.write. The mw.loader.using callback
sets the schema defaults and calls .fire on the Callbacks object, causing the
EventLogging event queue to be processed. Tested on Opera 12 and Chrome 30 on
OS X.

Bug: 50746
Change-Id: I89cf06990ee85e70698149b4812d7900218e4fb4
2013-07-09 01:48:06 +00:00
Siebrand Mazeland
96705c0ed9 Remove redundant value assignment
Also redistribute variables over 2 lines instead of 3.

Change-Id: I4127173f84ef59d4de2199ff45b52243c761a87d
2013-07-08 14:38:05 +02:00
Siebrand Mazeland
160ee87f15 Pass integer instead of string
Change-Id: I8b831108d6f40a2e764fbbd46f4241530d7f6153
2013-07-08 14:32:25 +02:00
Siebrand Mazeland
b5b6aa15f4 Simplify if-statement
Change-Id: Icc91ed0650297935538a6398f4a540899b677317
2013-07-08 14:29:00 +02:00
Santhosh Thottingal
e4cefe06fd Apply webfonts to the IME selector too
It get added to DOM after DOM is ready, and does not inherit styles
(by design)

Change-Id: I45a982b5c1c2a39718f38e77a33b79f89e460474
2013-07-08 07:42:49 +00:00
jenkins-bot
2fdf4bffb3 Merge "Accessibility attributes for ULS trigger" 2013-07-08 07:41:59 +00:00
Santhosh Thottingal
d217a2fe73 Make anything with class 'uls-settings-trigger' work like ULS trigger
Usecase:

Reading problems? click [here]. That [here] can be a ULS trigger to open
language settings.

Change-Id: I1561f8b782037bfdb418f33097fc8b4c519ef393
2013-07-08 13:05:44 +05:30
Santhosh Thottingal
1445d02e6e Accessibility attributes for ULS trigger
Bug: 50575
Change-Id: I07a6fa740e6dcdcb0fd4ae8832ba0ad6fd875170
2013-07-08 07:30:04 +00:00
jenkins-bot
870ac4fb16 Merge "Log ime-enable and ime-disable events" 2013-07-08 07:21:35 +00:00
Santhosh Thottingal
0145529035 Documentation for mw.uls.init
Bug: 50858
Change-Id: Iada465a8228955bf24f7a4628bf2288b3fe0c0ac
2013-07-08 12:40:49 +05:30
jenkins-bot
3121b25d02 Merge "jquery.i18n message store for ULS" 2013-07-08 07:04:52 +00:00
Santhosh Thottingal
3d6e4a007f jquery.i18n message store for ULS
Bug: 49935
Change-Id: Iddef0805abbf9b4ff0e606fc311c57e9dfa7107d
2013-07-08 06:55:21 +00:00