Commit Graph

535 Commits

Author SHA1 Message Date
Amir E. Aharoni
1b2e696742 Add Accept-Language list to the landing page
Change-Id: I89d4ef938f9e2b9999844fcf1a05a7cf8f6fa098
2012-08-30 15:59:02 +03:00
Niklas Laxström
64c26ad137 Initial version of geolocation support
Change-Id: Ia1a18ac336131520bbc67f52194f4aa9c547ea67
2012-08-30 15:36:51 +03:00
Santhosh Thottingal
fde6b18e40 Lazy loading of regions
Also adds landing page feature. But candidate list is hardcoded
for now. Example html file updated.

show method of lcd renamed to render.

Introduced a trigger searchclear
Introduced mw.uls.changeLanguage, setPreviousLanguages
getPreviousLanguages and getBrowserLanguage methods

Region groups re-numbered - from [4, 1, 2, 3] to [1, 2, 3, 4].

Change-Id: Iac1edf628708e6f40e41578df70d40c42f15289a
2012-08-30 14:26:57 +03:00
Santhosh Thottingal
b845045070 Use jquery.jStorage for saving preferences of anonymous users
Change-Id: I36f9f13a3468a11e05d1e1bb59b1841aa3464a24
2012-08-30 08:23:21 +00:00
Santhosh Thottingal
0d73ffe09e Use sans-serif as default fallback font
jquery.uls uses Helvetica, Arial, sans-serif.

Override it to match MediaWiki's default fallback font.

Change-Id: I2d842ce5c2f9a32c781560c4583567873320e786
2012-08-25 21:47:38 +03:00
Santhosh Thottingal
bc2877449c MediaWiki override for ULS defaults.
Change-Id: Ia64c51b988e3b1bbd3bb9cabac53fdc1069609db
2012-08-23 15:55:12 +05:30
Amir E. Aharoni
567cb54a9a Fix font preferences saving.
Change-Id: I31ea1092bd5258c4af3973ae8237337133fd5d94
2012-08-22 08:36:53 +03:00
Santhosh Thottingal
d070071274 Make the close button of language settings work
* Actually it should go to previous context. but that is a FIXME
* Jslint fixes

Change-Id: I2e0685adc42331fd86716dfa73be3630208aa893
2012-08-21 15:16:48 +05:30
Santhosh Thottingal
5c6567adbc Whitespace, typo, jshint fixes
Change-Id: Ib22d9c4a75d1f9ce77a7db2a820dc6de9c680b09
2012-08-21 12:12:15 +03:00
Santhosh Thottingal
77515dd664 Use new jquery.uls and preferences system
Change-Id: I0e626320f494597e9125d394fb9bbbceccfff34c
2012-08-21 10:10:31 +05:30
Santhosh Thottingal
a07dc90ddf Make the preferences singleton
Renamed $.fn.uls.preferences to mw.uls.preferences since this is not a jquery
function, but a singleton object per page.

Change-Id: Ie6c37fb321685e927fa5197fa8a53f41bff656ef
2012-08-21 10:09:25 +05:30
Santhosh Thottingal
86952ff9fd Allow selection of font for content language
* One more dropdown for content language( if it differs from UI
  language )
* Save the font preferences for both ui and content language
* many refactoring, variable renaming for this change
* Marked many TODOs and FIXMEs

Change-Id: I93ae5eced5938667af186be51bc8a5b5cd1d7eaf
2012-08-21 10:09:25 +05:30
Santhosh Thottingal
2293040cd7 Pass searchAPI and languages to work to ULS
Change-Id: I7bac18842332ff445f9570f568710140fc3b3b3d
2012-08-20 14:55:16 +05:30
Amir E. Aharoni
fd1cbea69a Add font selection functionality to the elements
* Disable the font selection dropdown if the checkbox is unchecked.
* Apply the font from the dropdown to the window.

Change-Id: I8e3f52dfb2f772fc8a2b8b18e0639ad802e8770e
2012-08-20 14:25:52 +05:30
Santhosh Thottingal
cacef09c6f Link to help page, Wider font dropdown, Title for UI language picker
Change-Id: I6c9abda2cc8ffa112b0ce7638d9724b7e087d7e3
2012-08-20 08:41:26 +00:00
Santhosh Thottingal
3250cd9a4c Fix the current language button behavior
When language is selected from ULS, re-render the language buttons.

Change-Id: I6012871bfb362f1ac2ac8e7f5d3e488346361214
2012-08-20 14:08:46 +05:30
Santhosh Thottingal
0d281887d3 ULS - Language settings navigation fix
Hide the popup when navigating to other window.

Change-Id: I7f1f6eef08249d6e40225d5ad7036b39e7c26b0e
2012-08-20 10:54:54 +05:30
Santhosh Thottingal
d67771fa01 Display Settings - ULS - Display settings navigation
Change-Id: I9d16cbac8f0f897378f769b0b98e48441503fe1a
2012-08-19 19:49:11 +03:00
Amir E. Aharoni
5bb5ca0118 Add webfonts reset functionality to the checkbox
Change-Id: I983d261fa018416c36ad2123b94850986beeca70
2012-08-17 11:57:02 +03:00
pginer
d78074a1df Display settings CSS fixes
Some adjustments in CSS to improve layout and visual style.

Change-Id: Ic215bdd64b13a5c263d3e6b2e67615f460282231
2012-08-17 00:17:06 +03:00
Amir E. Aharoni
a080bf8056 Remove double space
Change-Id: I01098eb637bbfe6170901dae68d5ea0fe1570aa6
2012-08-16 18:39:02 +03:00
Santhosh Thottingal
1bc80d58ba ULS persistent preference system.
Change-Id: Ieb22e09f226e770c9935b875f4226a75ffd8c46d
2012-08-16 17:20:21 +03:00
Santhosh Thottingal
710146ef99 CSS fixes for display settings
CSS fixes by Pau, based on If279f7a8

Change-Id: I33f63eef3f7aea26b9498c3c357930d8e6b54085
2012-08-16 06:34:13 +00:00
Santhosh Thottingal
398f9ef949 Position the language settings
* Expose two options: left and top
* Make the init script pass that.
* Introduce position method in jquery.uls

Change-Id: I21f4d956f1ed2c56528731ab09ecc6a89834f796
2012-08-15 21:25:16 +03:00
Amire80
841bdfcfe5 Merge "More UI code" 2012-08-15 17:18:43 +00:00
Siebrand Mazeland
72d2519c4d Fix some issues pointed out by IDE.
* Update .gitignore to ignore .idea.
* Removed unused local variables.
* use local context and Message class instead of deprecated wfMsg* methods.
* Remove redundant px in CSS where possible.
* Combine CSS statements where possible.
* Replace b by strong.

Change-Id: I9d5ed7b7ce585a1c101044254bcbdfc33d42afc1
2012-08-15 17:32:49 +02:00
Santhosh Thottingal
a17598ad04 More UI code
Not all functionalities are added.

Change-Id: I37007a8dedce6bcb055a9d6d79376f40868fd6dd
2012-08-15 18:25:09 +03:00
Amire80
103269694f Merge "WebFonts integration with ULS display settings." 2012-08-15 06:01:13 +00:00
Santhosh Thottingal
8f7382b242 Introduce languages options to ULS
Default value of this option will be $.uls.data.autonyms().
It can be set to limit language selection to a set of languages.

Updated examples, used a config variable wgULSLanguages to set this.

Change-Id: Ia322cbdcdb14f08619d2e4df5b23e2702841d147
2012-08-15 08:52:46 +03:00
Santhosh Thottingal
e62b50c9d8 WebFonts integration with ULS display settings.
This does not add much functionality. That will come in
future commits.

This commit has many cleanup, refactoring on the display settings,
language settings code.

Change-Id: I7fbc3ebb9b67c1afd80f159c2d82cd2a1c6bea74
2012-08-14 18:01:25 +03:00
Niklas Laxström
3f4b5e4540 Mediawiki WebFonts repository for jquery.webfonts
Added license and upstream information and a
script to compile repoconfig automatically
from metadata.

also contains integration code

Change-Id: Ib39668249dd568a1f6017f0c08a3b9d1e2067ae4
2012-08-14 19:01:46 +05:30
Santhosh Thottingal
7414184593 Webfonts integration
Change-Id: Ic5ba46689a8fdbea6fc7c1bae74d798de3310bdf
2012-08-14 11:52:22 +05:30
Amir E. Aharoni
a3ab65906a Add Language settings dialog
Change-Id: Ie3455f32ac6ceff3c52d79643a6f7f82106ab7f1
2012-08-14 10:42:13 +05:30
Amir E. Aharoni
20261a806d Fix whitespace
Change-Id: I9c8fb4a8d9cf2a38207d60ea28084d3d3a3d3cea
2012-08-09 17:33:35 +03:00
Santhosh Thottingal
1648899c45 Introduce display settings link at the top of ULS
Extend $.fn.uls render method to add additional rendering of display
settings link.

Add css for the new element.

Add display.png icon from the Agora icon set.

Change-Id: I7a29b4892be02526969b0dd786c74bdb7551c074
2012-08-09 16:25:16 +03:00