Commit Graph

41 Commits

Author SHA1 Message Date
Santhosh Thottingal
d67771fa01 Display Settings - ULS - Display settings navigation
Change-Id: I9d16cbac8f0f897378f769b0b98e48441503fe1a
2012-08-19 19:49:11 +03:00
Santhosh Thottingal
f3ffe8bead jQuery.uls bug fixes and keep template with the plugin
* The jQuery selectors should be referring to the menu for the current
  ULS instance rather than querying on the page. This allows multiple
  instances of ULS present in the page
* Keep the HTML template with the plugin. No more HTML added from hooks.
* Updated the example based on above change.
* Updated the hooks code.
* Some more documentation.

Change-Id: I48e2e167bc2c09b8653a142c50317c22e8ba1362
2012-08-19 18:29:37 +03:00
pginer
7b15032626 CSS adjustments on color and sizes
Small adjustments on color to make it compliant with the Agora palette,
cross-browser gradient code added according to CSS WMF guidelines, and
adjustment of element sizes.

And whitespace and new line cleanups

Change-Id: I08890009eff9ed5edec77855467529eb07eaeb57
2012-08-17 17:23:39 +05:30
Amir E. Aharoni
a080bf8056 Remove double space
Change-Id: I01098eb637bbfe6170901dae68d5ea0fe1570aa6
2012-08-16 18:39:02 +03:00
Niklas Laxström
ee7f16526c (bug 39230) Autocompletion does not get cleared on region change
* Introduced deactivate (clear without showing all languages)
* Renamed noresult in region filter to noresults to match the
  callback in languagefilter
* Some comments to help understand the code

Change-Id: I544a29b860a6d3f4a5aa770f84cc8a72ae4a4b9d
2012-08-16 09:33:39 +00:00
Santhosh
7ab6960645 Merge "Fix bug 39417 - Scrollbars appear for ULS regions" 2012-08-16 09:27:44 +00:00
Niklas Laxström
ea47df33e0 Two RTL fixes
* WW can flip sides, other regions not
* Display settings icon now changes side and doesn't overlap with text

Change-Id: I35a6c93448a8dd178e657ba25093cf77199227c8
2012-08-16 08:57:16 +00:00
pginer
eb9ea46496 Fix bug 39417 - Scrollbars appear for ULS regions
Modified overflow property to avoid vertical scrollbars.

Change-Id: I93fdb98207348e8b105c223f3d4518b8bbed9bee
2012-08-16 10:46:37 +02: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
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
dbcdd63e69 Documentation for methods
Change-Id: I290a2019b80370d3ae462c63fa64abcdceb7c1e8
2012-08-15 20:10:28 +05:30
pginer
a4ee53b827 CSS fixes for colors and size consistency
Small CSS adjustments to:
* Reduce ULS vertical size to adapt to the 8-row layout.
* Use more contrast in colors to better comply with WCAG.
* Add overflow properties to regions in map to avoidlong texts to overlap.

Change-Id: I0498f68e32b978f2e1d8c2d4c5e788c71483590d
2012-08-15 14:24:53 +02:00
Amir E. Aharoni
05a878ba9f Added French to NA (Quebec), SA (Guiana) and WW
Also updated tests accordingly.
Patch originally proposed by Aude.

Change-Id: Id83f6fb80d394e6fac4d7486ba2feae9e9c5bd99
2012-08-15 09:37:16 +03:00
Santhosh Thottingal
0f65329aaf Merge "Visual prefix" 2012-08-15 06:10:20 +00: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
97758430ff Merge "Partly reverting the langdb" 2012-08-15 04:56:15 +00:00
Santhosh Thottingal
0ace474b01 Fix Bug 38666 - When searching no specific region should be highlighted in the map
Clicking again on a region deselect it
When searching, remove selection from regions.

Change-Id: Ife70639a864f9d13d02406d1229316782a32ed3c
2012-08-14 22:46:48 +03:00
Santhosh Thottingal
3625e110e4 Visual prefix
Make sure that suggestion is not only prefix but also visually prefix.
Checks the ending character is pre-base vowel.
There might be characters with this property in non-indic languages, but
I am not aware of now.

Change-Id: I91abd4dee6c4349e901777ebd6972731808daf45
2012-08-14 19:28:53 +00: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
Amir E. Aharoni
3d2e85664f Partly reverting the langdb
Multiple scripts and autonyms are not currently supported by ULS utils.
I commented out the problematic lines and left the current de-facto
situation in Wikipedia.
This is a TODO item, but it needs proper specification.

Also updated the tests somewhat.

Change-Id: I8cdc6ae430f5bb5af4b1890abf6e71a91b6beb3d
2012-08-14 16:46:11 +03:00
pginer
a870263ad9 Fixes to avoid fragmentation in the language list
Adjustments in the language layout to make it easy to scan through
the language list and distinguish the different script groups:

* Removed the empty spacing row between groups.
* Changed the maximum number of languages in a column.
* Changed the order of script groups for better discoverability.

Change-Id: If223ae65bfec256c56d6092628b3999dfd02a119
2012-08-14 13:53:03 +03:00
Niklas Laxström
23763bd247 Added autonyms directly to langdb.yaml
* Can add languages not in MW
* Can get rid of foo / bar names which include different scripts
* Can get rid of directionality marks
* PHP scripts to generate the jquery.uls.data.js is now independent of
  mediawiki and moved the scripts to lib/jquery.uls/data
* No pretty printing for the jquery.uls.data.js and added a 'do not edit' comment.
* Related changes in RL module definition and example html

Change-Id: I9a360dbdec4e9312aa5c76f801424ff95a8550d6
2012-08-14 10:19:38 +00:00
Amir E. Aharoni
a3ab65906a Add Language settings dialog
Change-Id: Ie3455f32ac6ceff3c52d79643a6f7f82106ab7f1
2012-08-14 10:42:13 +05:30
Reedy
254e6da88f Add header to jquery.uls.data to say it's generated programatically
Also add the same comment to the ulsdata2json.php script

Change-Id: I61f795ea6e4545e7b668f171f759a231cc995437
2012-08-12 16:57:04 +01:00
Reedy
f8387a1e07 Reformat JS so its actually readable
Rather than 13,000 characters wide..

Change-Id: I1f7be4162ecf701aed250146dd3b906f592817b0
2012-08-12 16:31:47 +01:00
Santhosh Thottingal
66999e5c75 Merge "Fix bug 38847 Clear suggested text when input no longer matches" 2012-08-09 15:48:02 +00: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
Santhosh Thottingal
bb4871f6e5 Fix bug 38847 Clear suggested text when input no longer matches
Change-Id: I6651f38830fcb54bf6b4290eeeedcf48841a8314
2012-08-09 10:23:22 +00:00
Nikerabbit
c3e42fcc2a Merge "Handling enter key in language filter" 2012-08-08 13:54:27 +00:00
Santhosh Thottingal
b8a9413ccc Always use autonyms for search results
Change-Id: Iacbaa78c9f66b0c754ac9faf9bb2752f95b35693
2012-08-07 19:24:46 +05:30
Santhosh Thottingal
315d529aed Handling enter key in language filter
* if the search string is language code, select it
* else if the autocompletion available select it
* else select the first language matching the query

Change-Id: If66f5c547a471026b7b2aebcde3c3b056e1c2917
2012-08-07 18:13:27 +05:30
Amire80
a7d3479d81 Merge "Implement visual language grouping in ULS" 2012-08-07 10:59:15 +00:00
Santhosh Thottingal
a9e49acf79 Fix issue: search strings like 't', 'a' are not giving results
There are languges starting with those letters, but without autonyms
Add a null check for undefined autonyms to prevent js error

Change-Id: I88a1d79b3bb23beac7238c1e8817cd6eac614613
2012-08-07 16:22:38 +05:30
Santhosh Thottingal
1a10318acb Implement visual language grouping in ULS
Added a utility callback function to sort languages by autonym.
Added CSS fix for group separatos.

Change-Id: I73c7c6518a85e4ea7999be3ef92a121e877610e8
2012-08-07 13:42:20 +05:30
Niklas Laxström
13403af261 Fix the map in RTL, again
Change-Id: Idde206fd968757cacf778ba41140b99e7f322cc7
2012-08-07 06:41:14 +00:00
Santhosh Thottingal
fc5c291536 Do not perform full search on page load
Do it on first click.

Change-Id: I403aef108cf5d4993f6e8fbc9ebf372893e48e3d
2012-08-06 14:20:32 +05:30
Santhosh Thottingal
12d947860a Fix a regression - region filter not working
Change-Id: I13261b96e75de601720f58eb3c045447034dd7b0
2012-08-06 12:32:41 +05:30
Santhosh Thottingal
16c82503fb Misc. performance tweaks
* Do not hit search API if there are results to show from front end
* Avoid the lcd exists check
* slightly reduce the timeout of search term typing
* show autofill for search api results too.
* correct the tooltip text of results.

Change-Id: Id102fbf3bc09eb926d9e36f125ed6291943007f9
2012-08-04 11:30:37 +05:30
Reedy
8813bddbba Half the size of the png files (yay for lossless compression)
Change-Id: I99a32a73549cc9b57a45758551e141734386e96f
2012-08-03 13:33:09 +01:00
Santhosh Thottingal
878313d2ec Rearranging Files
* Seperating standalone jQuery ULS plugin and extension related code
* lib/jquery.uls can be submodule, but not now.

Change-Id: I7d9cb47daa88dd1a27ceda602a08cab0073caf33
2012-08-03 12:24:04 +05:30