Commit Graph

549 Commits

Author SHA1 Message Date
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
Timo Tijhof
89d64b7e93 build: Clean up Gruntfile
* Sort jshintrc a-z and section it.

* Remove grunt.js from jshintignore (file no longer exists).

* Simplify jshint config by using globstar. The jshintignore
  file still applies (to skip jquery.uls.data.js).

* Update jshint config to also validate Gruntfile.js

* Update listed dependency on 'grunt' and 'grunt-cli' to the
  versions they currently expand to already. We don't know if
  we're compatible with older versions. '^x.y' means, equal or
  higher (within the same major release). Similar to '~x.y',
  except that tilde tolerates older versions.

* Update grunt-contrib-jshint and grunt-contrib-qunit to their
  latest versions.

* Remove obsolete jshintrc parsing hack, use built-in 'jshintrc'
  option as of v0.8.0.

* Remove unused 'pgk' property in grunt config.

* Remove unused grunt-contrib-jasmine and grunt-contrib-copy
  from devDependencies (unused as of ab9b01444f).
2014-10-09 05:59:54 +02:00
Timo Tijhof
e34349cf96 test: Use https:// instead of protocol-relative urls
Protocol-relative urls don't work when using the file from the
file system directly in a browser (they require the file being
served from a http web server).

This is why the Grunt run has been broken since 426ccf0131, as
can be seen on https://travis-ci.org/wikimedia/jquery.uls/builds.
2014-10-09 05:59:49 +02:00
Timo Tijhof
940c779b59 build: Remove jquery from package.json dependencies (unused)
Follows-up 2ce74db801.

This is not a node.js project. There are no references to
node_modules/jquery in file paths anywhere, and also no usage
of "require('jquery')".

Currently it just delays 'npm install'.
2014-10-09 05:59:49 +02:00
Timo Tijhof
ff100e271b travis: Switch to Node.js 0.10
This repository is mainly about client-side javascript, the version
of Node.js used for the build scripts doesn't really matter.

One of the dependencies in package.json uses the '^x.x' syntax in
its sub-dependencies and isn't supporteed on Node.js 0.8, which
is why the Travis CI build is currently erroring on the install step.
2014-10-09 05:41:35 +02:00
Siebrand Mazeland
4a681a269a Localisation updates from https://translatewiki.net. 2014-10-06 12:02:49 +02:00
Niklas Laxström
982e2c32e7 Merge pull request #159 from santhoshtr/decorator
Add decorator option for language links
2014-09-25 10:30:15 +03:00
Santhosh Thottingal
022efabf38 Minor formatting changes
Change-Id: I3ffd7029165ff614c13000b333ed30d3874fba28
2014-09-23 16:16:44 +05:30
Santhosh Thottingal
a8afed3972 Update ULS data with latest supplementalData.xml from CLDR
Change-Id: I30d302374c784b7baeb99150a1c53d14bab4123c
2014-09-22 14:01:36 +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
Kartik Mistry
f2e00432ce Merge pull request #157 from amire80/arq
Change the autonym for Algerian Arabic
2014-08-07 18:23:49 +05:30
Amir E. Aharoni
b345da64af Change the autonym for Algerian Arabic
The incubator at https://incubator.wikimedia.org/wiki/Wp/arq uses
the Arabic script and this name.
2014-08-07 12:23:13 +01:00
Siebrand Mazeland
79295e25c4 Localisation updates from https://translatewiki.net. 2014-08-06 16:50:06 +02:00
Santhosh Thottingal
18f11eda58 Merge pull request #154 from kartikm/jqueryname
Use jquery instead of deprecated jQuery in package.json
2014-07-27 20:15:19 +05:30
Siebrand Mazeland
fb61cd99a6 Localisation updates from https://translatewiki.net. 2014-06-17 11:55:23 +00:00
Kartik Mistry
59d1370631 Merge pull request #156 from amire80/rut
Adding Rutul language
2014-06-16 17:41:40 +05:30
Amir E. Aharoni
78589aef15 Adding Rutul language
Requested in the Russian Wikipedia for the Rutul incubator.

https://ru.wikipedia.org/wiki/Обсуждение_проекта:Разделы_Википедии_на_региональных_языках_России
2014-06-16 15:06:39 +03:00
Santhosh Thottingal
9f9366e29b Merge pull request #155 from kartikm/travis
Fix .travis.yml
2014-06-10 15:02:42 +05:30
Kartik Mistry
a2d7b4e4fd Fix .travis.yml
git submodule no longer exists.
2014-06-10 14:06:17 +05:30
Kartik Mistry
df54fbb245 Merge pull request #153 from amire80/kjh
Add the Khakas language (kjh)
2014-06-10 12:59:18 +05:30
Kartik Mistry
a460358ae1 Use jquery instead of jQuery in package.json 2014-06-09 20:07:10 +05:30
Amir E. Aharoni
1b41a31dc6 Add the Khakas language (kjh) 2014-06-09 16:55:54 +03:00
Santhosh Thottingal
abc82945c1 Bring back the clear icon for clearing the search
Caused by a class rename

Change-Id: If4fa0bc14ca890e43182993f8bdd5ddb9de62417
2014-06-03 09:28:43 +05:30
Santhosh Thottingal
36478fa55a Fix css class names in the template
Somehow missed in previous merges

Change-Id: I700f53b6d9d78f7b5db88d880c151139bfb7e4dc
2014-05-22 09:33:12 +05:30
Santhosh Thottingal
afb99eb09d Merge branch 'edg2s-css' 2014-05-18 14:14:15 +05:30
Santhosh Thottingal
b3c5c44efa Merge branch 'css' of github.com:edg2s/jquery.uls into edg2s-css
Change-Id: I04d52aa78bb99762dbc1982f8b1515e9cb9d7e67
2014-05-18 14:08:09 +05:30
Santhosh Thottingal
e59b5233b1 Merge pull request #150 from thiemowmde/master
Hide misplaced borders in the compact design
2014-05-18 10:44:12 +05:30
Santhosh Thottingal
7d38ed9bde Merge branch 'master' of github.com:wikimedia/jquery.uls 2014-05-18 10:21:39 +05:30
Santhosh Thottingal
9599ed7d26 Fix the jQuery migration warnings
Remove the spaces in the beginning of html template strings.
$( html ) require html to start with  '<'

See https://bugzilla.wikimedia.org/show_bug.cgi?id=65400

Change-Id: I93eaf41390ab72fcae1b8d4015585bc4f82e6f8a
2014-05-18 10:20:07 +05:30
Santhosh Thottingal
cc37ec225d Upgrade to jQuery 1.11.1
Change-Id: I3eaf9c56fe18bad51ce22b1292d6d7308ec20690
2014-05-18 10:18:30 +05:30
thiemowmde
951a485878 Hide misplaced borders in the compact design
The border on top is white and therefore not visible. It's simply the wrong element hidden.

The border at the bottom was gray and visible. It looked like a misplaced 2px border.
2014-05-15 21:44:24 +02:00
Siebrand Mazeland
257233c18e Localisation updates from https://translatewiki.net. 2014-05-12 13:43:03 +00:00
Ed Sanders
d26b5f8d2e Rename settings-block to uls-settings-block 2014-05-02 14:46:41 +01:00
Ed Sanders
3c924396fe Rename languagefilter to uls-languagefilter 2014-05-02 14:45:20 +01:00
Ed Sanders
6e8a736863 Rename languagefilter-clear to uls-languagefilter-clear 2014-05-02 14:42:29 +01:00
Ed Sanders
e4ac600fc5 Rename filtersuggestion to uls-filtersuggestion 2014-05-02 14:41:17 +01:00
Ed Sanders
90dae4cfcd Rename filterinput to uls-filterinput 2014-05-02 14:39:16 +01:00
Ed Sanders
b31254396e Rename search-input-block to uls-search-input-block 2014-05-02 14:37:22 +01:00
Ed Sanders
b4913cd717 Rename search to uls-search 2014-05-02 14:36:53 +01:00
Ed Sanders
9a4be3023b Rename search-label to uls-search-label 2014-05-02 14:36:46 +01:00
Ed Sanders
20d80a1294 Rename icon-close to uls-icon-close 2014-05-02 14:36:39 +01:00
Ed Sanders
4c8ecb2ebd Rename map-block to uls-map-block 2014-05-02 14:36:31 +01:00
Santhosh Thottingal
d352b73c37 Merge pull request #145 from edg2s/patch-3
Consistently use this when scope allows it
2014-04-29 09:16:10 +05:30
Santhosh Thottingal
c7c938cf4c Merge pull request #143 from edg2s/patch-1
Always close with 'cancel' method
2014-04-26 16:59:26 +05:30
Santhosh Thottingal
04d11ea53f Remove the unused option menu
Fixes issue #140

Change-Id: Idc04a45b97837c5f9bd1f975b6668b6539df0752
2014-04-26 16:57:23 +05:30
Kartik Mistry
f23934cd64 Merge pull request #146 from amire80/ota
Changing the writing system and the autonym for Ottoman Turkish
2014-04-25 19:57:59 +05:30
Amir E. Aharoni
bdbff7919e Changing the writing system and the autonym for Ottoman Turkish 2014-04-25 17:07:27 +03:00
Santhosh Thottingal
426ccf0131 Merge pull request #138 from kartikm/qunit-path-fix
Fix the path to qunit.js and qunit.css
2014-04-23 12:25:55 +05:30
Ed S
f0be8b5425 Consistently use this when scope allows it
We have uls = this for scoping, but then we randomly switch between the two, even when 'this' is allowed. We only need to used the local variable in un-proxied anonymous functions.
2014-04-22 14:59:46 -07:00
Niklas Laxström
0d34e864c6 Merge pull request #144 from edg2s/patch-2
Only use default pos if top/left are undefined
2014-04-22 10:41:05 +03:00