Commit Graph

39 Commits

Author SHA1 Message Date
Niklas Laxström
8a8f502de7 Style changes to lcd
This change is larger than it should because I came across lots of
unused CSS which I removed or simplified.

https://phabricator.wikimedia.org/T138235
2016-08-17 16:29:08 +02:00
Niklas Laxström
25775dd147 Adjust styles and code to support custom list bullets
Tweak specificty of the rule that hides bullets so that it is easy
to override.

Move dir and lang attributes from <li> to <a> so that the bullets
appear on the correct side for reverse directionality scripts.

Change-Id: Ic0d0c5220b0b374c2a3a19023c40d81f3e20007c
2016-06-09 15:08:15 +05:30
Santhosh Thottingal
9a8dc303a7 Update example files by removing js/css files not existing
Change-Id: I150a7c6c41fa65fd299b5838c8b80c810a0bb1cd
2016-05-11 12:02:07 +05:30
Santhosh Thottingal
11b87cb5be Remove the regionfilter module
It has lot of redundant and unused code used when we had the map.
Removing it. No change in functionality is expected

Change-Id: I278ef63b7756b5061c0b6638ba4e7b7deebf5a0d
2016-05-09 17:03:37 +05:30
Niklas Laxström
2a538b78e1 Remove compact mode
Make the regular mode look like compact mode
2016-04-21 15:27:49 +05:30
Amir E. Aharoni
f44302106b For narrow ULS show one column without separators 2014-12-22 11:09:48 +05:30
Amir E. Aharoni
b55bc61dc7 Grid-compatible adjustable columns 2014-12-02 22:16:09 +02:00
Timo Tijhof
e6ba739b1b examples: Consistent markup and no protocol-relative urls
To ensure these work locally over the file:/// protocol, simply
use https instead.

Straighten out inconsistencies in the markup (closing slash). Made
to match the test/index.html file.

Also:
* index-mobile.html: Re-use jQuery object instead of executing
  the same query three times.
* test: Remove unused qunit-fixture element.
2014-10-09 06:55:24 +02:00
Santhosh Thottingal
022efabf38 Minor formatting changes
Change-Id: I3ffd7029165ff614c13000b333ed30d3874fba28
2014-09-23 16:16:44 +05:30
Santhosh Thottingal
7346469e20 Add decorator option for language links
Callback function to be called when a language link is prepared
Can be used for custom decoration.
Arguments:
(a) the $language - the language link jQuery object
(b) languageCode

The function can do any styling, changing properites etc on the passed link.
See examples/decorator.html for example usage.

Change-Id: I5a67654440a07cf7dfac683e22dcb5000ded0bfe
2014-09-22 12:32:05 +05:30
Santhosh Thottingal
cc37ec225d Upgrade to jQuery 1.11.1
Change-Id: I3eaf9c56fe18bad51ce22b1292d6d7308ec20690
2014-05-18 10:18:30 +05:30
Siebrand Mazeland
9b3d64e7d7 Remove stray character in example file 2013-12-03 13:53:01 +01:00
Santhosh Thottingal
22475812b1 Move the autonym font to example instead of making part of jquery.uls
Change-Id: I1fa119ef3a89f34e1fde18712d4e267d174869c8
2013-11-01 14:55:44 +05:30
Siebrand Mazeland
658914a984 Update code formatting 2013-10-08 23:59:40 +02:00
Siebrand Mazeland
3571e77dc7 Update jQuery version in examples to 1.10.1 2013-07-08 13:56:04 +02:00
Santhosh Thottingal
61256a4dbc Load jQuery 1.8.2 from CDN
Change-Id: I5c648c799678c488f105b9132dd94d64d4b82dce
2013-03-26 09:28:19 +05:30
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
Pau Giner
44ff5e0120 Support for back links for uls-compact
Added styles for links that are inserted in the header of the list
to allow the user to go back for multi-step dialogs.

Change-Id: I062086e23d0d5275fd577d9977313b0ac25cf014
2013-03-15 10:09:06 +05:30
Pau Giner
e23d7171d5 Stylesheed and example for compact language list
A searchable list for scenarios where users need to
type/select a language (or more) as input.
The list is made more compact by removing secondary
aids from the ULS to focus on the input task.
2013-03-14 22:14:36 +01:00
Amir E. Aharoni
2bafab8414 Whitespace 2012-12-14 09:46:03 +02:00
pginer
ecfa8756bf Make ULS ready for mobile
This provides support for adapting the ULs to small screens:
* A mobile-specific CSS, that is only applied when the ULS uses .uls-mobile class, has been created (based on Foundation.css mobile rules + some specifics) to support mobile-specific classes.
* The core HTML has been modified to include some clases that in case mobile CSS is enabled dictate which elements can behidden and the number of columns to use in the mobile grid (4-column based).
* An index-mobile.html example has been set-up to illustrate the changes. Some of the changes required for a correct mobile experience are still done with JQuery modifications. Someone should probably update the ULS API to allow the inclusion of optional classes (such as uls-mobile) and overriding positioning parameters.
2012-11-29 10:03:07 +01:00
Siebrand Mazeland
58f4e98917 Update to jQuery 1.8.3. 2012-11-19 10:34:54 +01:00
Siebrand Mazeland
aa691f8d85 Update to jQuery 1.8.2. 2012-11-15 10:16:44 +01:00
Santhosh Thottingal
2c9a2b6517 Add an example for limiting the number of languages to be searched/displayed
Change-Id: I29450e9669a41b7ee6f5e3a38ab682650a60e745
2012-11-08 13:08:11 +05:30
Santhosh Thottingal
761c845ad2 Fix ULS: Pointer style target should match click target
Reported at https://bugzilla.wikimedia.org/show_bug.cgi?id=41314
Also removed unwanted a tag

Change-Id: Id3eeabf76a12a8ec2c0d38b27b868216a2f785e0
2012-10-24 12:01:07 +05:30
Santhosh Thottingal
04c5cc1e23 Merge branch 'master' of github.com:wikimedia/jquery.uls
Conflicts:
	examples/index-i18n.html
2012-10-09 19:44:01 +05:30
Santhosh Thottingal
76094b8e03 i18n the placeholder text in language selector and correct the onready
callback
2012-10-09 19:41:32 +05:30
Amir E. Aharoni
5e16abf26d .autonym -> .getAutonym 2012-10-08 08:13:34 +02:00
Santhosh Thottingal
0781f022dd Internationalize ULS
* internationalize ULS when jquery.i18n is present. Otherwise use the
fallback English interface
* Example with and without i18n
* Message files for few languages
2012-09-21 22:24:06 -07:00
Santhosh Thottingal
035cfb08c4 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
d72e97a065 Move regionfilter to a seperate javascript file
To lib/jquery.uls/src/jquery.uls.regionfilter.js

Change-Id: I5f4e424ff68d7a7ed6407f48ddf84cdadfe90a52
2012-08-21 16:20:03 +05:30
Santhosh Thottingal
9da90921c4 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
Amire80
0ada49322a Merge "WebFonts integration with ULS display settings." 2012-08-15 06:01:13 +00:00
Santhosh Thottingal
85373c1ac1 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
350c13844d 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
a2e3671a26 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
Santhosh Thottingal
41271ccd17 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
0a681a85fe 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