Commit Graph

127 Commits

Author SHA1 Message Date
Santhosh Thottingal
8bfe9862fa Avoid hardcoded font fallback stack
Change-Id: I07571d1390f4f68313b786d3dd1371488b6534a6
2012-11-23 09:14:20 +00:00
Santhosh
0f96c29356 Merge "(bug 39685) Disable the Apply button until there are changes" 2012-11-23 06:38:24 +00:00
Amir E. Aharoni
ac32e53fe6 (bug 39685) Disable the Apply button until there are changes
This commit completes the solution of this bug for Input settings.

Change-Id: Iebabb08bdd4138cff278b811a681d684363ecc12
2012-11-22 15:44:19 +02:00
Amir E. Aharoni
d912fbccfe (bug 39685) Disable the Apply button until there are changes
Make the button disabled initially.
Change the disabled property to false on every possible change.

For now this is only for display settings.

Change-Id: Ifea533a9606f66b5dfeb38075186ddec596330a6
2012-11-22 15:03:02 +02:00
pginer
4edd874d2e Visually connect input language and available methods.
Adds a tooltip-like panel to clearly indicate that input methods displayed
are related to the input language selection.

Change-Id: Ib4e9bca48f1f18cfd09a32c25f7ebf404af228e8
2012-11-22 14:01:20 +02:00
Amir E. Aharoni
f410f5d99a Consistent name for the inputSettings variable
Rename various names of "that = this" to "inputSettings = this".

Change-Id: If547a1e8da102c755019b50a5bc35f9c2cc4ab6a
2012-11-22 09:57:46 +02:00
Siebrand
f98789d065 Merge "Fix Bug 42100 - Add more languages for OpenDyslexic font" 2012-11-21 12:26:24 +00:00
Santhosh Thottingal
36a8382763 Do not close when clicked outside
Change-Id: I8c62161ee277dcbad9f8989362290b983978c785
2012-11-21 17:34:33 +05:30
Santhosh Thottingal
5e6d44e940 Close the language settings if clicked outside
Make the behavior consistant with ULS language selector

Change-Id: I9bfc29f908ebe48a1bb9cdcdede75a5d5aa3839d
2012-11-21 17:05:27 +05:30
Santhosh Thottingal
710e72c2c7 Fix Bug 42100 - Add more languages for OpenDyslexic font
nl fy li id tl gl bk nb added

Change-Id: Ie97aabe1e28bd92a7142f21a0b4dcda94ec3019f
2012-11-21 16:50:27 +05:30
Nikerabbit
018b999328 Merge "Just hide the whole window after apply button pressed" 2012-11-21 07:21:43 +00:00
pginer
73bb7015c8 CSS fixes to match the style modifications of jquery.uls
The style rearrangements of jquery.uls (to avoid CSSLint warnings)
requires some fixes on the extension.

Also update the changes from jquery.uls

Change-Id: I607f7778e620a398ce8648c21c594a3505ec0816
2012-11-20 16:33:32 +05:30
Santhosh Thottingal
ad094f459f Just hide the whole window after apply button pressed
Change-Id: I6fe8675bddc7fa5fa8e3ac56cdbb3604cc695e22
2012-11-19 15:11:54 +05:30
Santhosh Thottingal
e3e0be19f2 Update the inputmethod settings as per design
Design: http://dl.dropbox.com/u/30377416/i18n/visual/input-settings.pdf

Do not show the language list and input methods if IME is disabled
And do not show descriptive text if IME is enabled.

Change-Id: I49e07cbadf7e253e4fb0d5a59029d9884308c06a
2012-11-19 09:20:41 +02:00
Santhosh Thottingal
7c4646a059 Remove href=#, to fix Bug 41988
Change-Id: I8eacaa452eb71d237fc671aa63c4707b8e14a83f
2012-11-19 10:59:26 +05:30
Santhosh Thottingal
0d11c4ef77 Updated repository with font variants
Change-Id: Iddb5dafd60a527b7ce4cb9a9a96e48f460d5fcdf
2012-11-14 15:28:58 +05:30
Santhosh
1c6876ba8b Merge changes I83625c21,I93b3329d
* changes:
  Remove empty @returns comment
  Fix possible variable pollution
2012-11-14 05:25:09 +00:00
Siebrand Mazeland
57a30afc55 Fix some JSHint issues
Change-Id: Iecb1f2d2d326260075755070882b7706c1ae7db4
2012-11-12 07:51:39 +01:00
Siebrand Mazeland
9ff4a4c343 Remove empty @returns comment
Change-Id: I83625c21a0de492004a1f20337a8288de0e49fd3
2012-11-12 07:46:38 +01:00
Fomafix
14aef6d7e1 Fixed the bug 42013 - 'class' as property name
Applied the patch given in bug report

Change-Id: I01ded82bd426edf630561b013d7cafe46130d697
2012-11-12 00:28:35 +05:30
Siebrand Mazeland
98d7a8d9f9 Reformat code.
Change-Id: Ic0a5b37fa01b4a13023e66af0518ea94919ee880
2012-11-11 10:34:10 +01:00
Ershad K
b37b33e02f Fixed Bug 39832 - Cancel / Apply button on Display settings
Change-Id: Ie536dbe1615db98c201b8c7fd1b5b58647bb1199
2012-11-11 12:35:40 +05:30
Niklas Laxström
3c9e7249a8 Geoclient fixes for https and WMF
* Don't call freegeoip on https, it wont work
* Use Geo instead of GEO like WMF

Change-Id: I9ebdd9f3518e15e70122a9c8c8d64240d5e44c5b
2012-11-10 07:15:07 +00:00
Santhosh Thottingal
c48b270dec Fix Bug 41804 - Display Settings shows dual labels for Font Selection
Change-Id: I46a9a67595840d0e67b95226f6d1fa17de1946e5
2012-11-08 14:48:31 +05:30
Santhosh
5f14b23bc4 Merge "Avoid contstructing html with concatenation" 2012-11-08 08:44:23 +00:00
Niklas Laxström
4b811a5997 Avoid contstructing html with concatenation
Fixes potential security issue, bug 41395.
Change-Id: I55c79e41de6084d18c49b8bb715a7f49e19dc7e9
2012-11-01 12:25:27 +00:00
Siebrand
cb78d33a0c Merge "Update jquery.i18n from upstream" 2012-11-01 12:00:16 +00:00
Niklas Laxström
25889d77b6 Avoid constructing html with concatenation
Change-Id: I6104ade6a9f9209df921577cd04d7fe9487e65d9
2012-11-01 17:26:10 +05:30
Santhosh Thottingal
63d98b05ea Update jquery.i18n from upstream
Change-Id: Id533eb69c2c192f2cb42749214e5bb23d379e404
2012-11-01 11:47:59 +00:00
Santhosh Thottingal
cccd49163b Correct the preference overriding for IME
Change-Id: I80eddfe7476b1c7ff1562f79bc14f497e4630862
2012-11-01 10:18:20 +05:30
pginer
833f8f63d6 Fix to reduce the ammount of settings text
Settings text on the main ULS view can grow longer for some languages running out of space.
This change does the following to avoid that:
* Removes setting section explanations and shows them as a tooltip on hover.
* Adjusts style for adjusting space between setting sections.
* Keyboard image has been adjusted to match the display settings image.

Change-Id: I42ec5cb35b3d4df977a6eff28ad55891f4135356
2012-10-31 18:37:06 +05:30
Santhosh Thottingal
fc29a7e587 Option for disabling the IME system
* It can be a user preference using the ULS Input method settings
* It can be a mediaWiki configuration $wgULSIMEEnabled

Change-Id: Ic5fb4932d62ab18db5d3b10ca81c0f6bfe9fd29e
2012-10-31 12:57:14 +05:30
Santhosh Thottingal
8069e530e7 i18n for input method settings
Change-Id: Id6cf3f24fe355a6757533d3b7f302e3d33cfa0c3
2012-10-30 19:50:35 +01:00
Santhosh Thottingal
427c94dbbf Avoid 404s in non-localized locales
* Update jquery.i18n - if messageLocationResolver returns false for
  a locale, no server hit will be attempted
* Refactor i18n preparation code to a new method
* Use the ULS RL hooks to find out to which locales it is localized,
  pass that list to js to avoid hitting server.
* Also avoid directory scanning in each request by putting
  the locale list in cache

Fixes Bug 41454

Change-Id: I0c923b35db01b884e2dd55873dd5fb7384434645
2012-10-30 13:53:47 +00:00
Santhosh Thottingal
4818545939 Add a more settings link instead of the help link
It opens the input settings panel of ULS

Change-Id: I6d22585f735073d3d7d3e59eba24befe72238786
2012-10-30 11:33:50 +05:30
Amire80
8a0845ee55 Merge "Move the IME customization code out of document.ready" 2012-10-29 10:31:46 +00:00
Amire80
c111f46c92 Merge "Remove unused settingspanel.js" 2012-10-29 09:39:27 +00:00
Santhosh Thottingal
87c7d50b01 Move the IME customization code out of document.ready
Change-Id: If358cb1639b4a7e847aefac8f4b7b1923209f76d
2012-10-29 14:32:44 +05:30
Santhosh Thottingal
1c72077c89 Cleanup
whitepace, unwanted fixmes, wrong comments, jshint

Change-Id: I571b2b3a7e9fbbe7c93262ee9783fbe334d9170e
2012-10-29 14:27:40 +05:30
Santhosh Thottingal
3a621cbfea Remove unused settingspanel.js
This was added in the assumption that there will be common code between
input settings and font settings. After development of both, it turns out
that there is not much common code

Change-Id: Id424122e515e9fa1f74030b0077c35835e6f15fa
2012-10-29 14:19:11 +05:30
Santhosh Thottingal
fc4ca9f823 Callback for preference save action is optional
$.noop() was wrong. Changed it to $.noop as callback

Change-Id: Iff935e1a9c1b364efd947ce1bff785dacb81570e
2012-10-29 10:34:43 +05:30
Santhosh Thottingal
4adb53b01f Show languages with Input methods in the language selector
When accessed from ... of input settings.

Change-Id: I553f1052143c56d5e4e96a2d62d1c3bc35eb4a02
2012-10-26 15:10:56 +05:30
Amire80
66b2badb5c Merge "CSS, tooltip fixes for the more button in IME selector menu." 2012-10-26 08:51:56 +00:00
Santhosh Thottingal
3ef527960c CSS, tooltip fixes for the more button in IME selector menu.
Change-Id: Ic1ace1191ad9745c9f02be4e5938ce3fb53da8b9
2012-10-26 10:49:45 +02:00
Amire80
835e4f1dbd Merge "Avoid lazyloading when used for input method language selection." 2012-10-26 08:24:28 +00:00
Amir E. Aharoni
98bb1c200c (bug 40693) Refactor font selector creation code
Change-Id: Id9560ad326cbd5202553da872b5fb0254c074109
2012-10-26 07:11:53 +00:00
Santhosh Thottingal
2fb85713cb Avoid lazyloading when used for input method language selection.
That list is small and we can load all the languages initially.
Fixes the scroll not appearing issue. Also fixes English being
appended to America region on scroll

Change-Id: Ic70d3ea30dc0ccf33a172361e0b50c07ed8ff82b
2012-10-26 11:14:03 +05:30
Santhosh Thottingal
f13e474e43 Input method integration with ULS
The file ext.uls.settingspanel.js is a draft for common
code in the different settings panels.

Change-Id: I057274f16b27b2c18d43d41c1d43f485a18ef0bf
2012-10-26 11:14:02 +05:30
Santhosh Thottingal
90de05cb97 Make the setting item toggle on click
Selection was not removed from other items when clicked.

Change-Id: Ie460ecc6504ccbe2abc217ba2e0a027f407c31cc
2012-10-26 11:14:02 +05:30
Nikerabbit
4c26d822f2 Merge "Simplify the preference system" 2012-10-24 15:54:33 +00:00