Commit Graph

1042 Commits

Author SHA1 Message Date
Niklas Laxström
79cbb8a5bb Merge pull request #222 from wikimedia/code_removal
Remove regionfilter related utility methods
2016-05-18 16:45:55 +03:00
Santhosh Thottingal
ed2427ba2d Remove regionfilter related utility methods
Change-Id: I1ab96280fa71cac3745eb7e7210b15a1e5bc78f8
2016-05-17 15:25:53 +05:30
Kartik Mistry
847a3aa7cf Update package.json 2016-05-17 12:08:45 +05:30
Niklas Laxström
7dcdab7f9c Localisation updates from https://translatewiki.net. 2016-05-16 07:34:58 +02:00
Niklas Laxström
e18aaece09 Localisation updates from https://translatewiki.net. 2016-05-12 09:37:35 +02:00
Santhosh Thottingal
9a8dc303a7 Update example files by removing js/css files not existing
Change-Id: I150a7c6c41fa65fd299b5838c8b80c810a0bb1cd
2016-05-11 12:02:07 +05:30
Niklas Laxström
3000287116 Merge pull request #221 from wikimedia/no-regionfilter
Remove the regionfilter module
2016-05-11 09:05:00 +03:00
Santhosh Thottingal
e9c0f3e4db Show "You may be interested in" section when no results found
This was broken long time back

Change-Id: I15f715067d82fb61959763824183a6813536e94e
2016-05-09 17:09:06 +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
Santhosh Thottingal
29f28a1f50 Clean up code formatting, add .jsbeautifyrc
Change-Id: Iafcc8084d87d8f2323d97bb4446e031951820d41
2016-05-09 16:41:31 +05:30
Santhosh Thottingal
35cd1b5736 Remove unwanted comma
Change-Id: I9c09ef9cf25949b37035c58f7c8550e30fa3442b
2016-05-09 16:32:12 +05:30
Niklas Laxström
60668c6037 Merge pull request #220 from wikimedia/215
Call onCancel from hide
2016-05-03 14:11:15 +03:00
Niklas Laxström
9bc25b726f Merge pull request #219 from ricordisamoa/devDependencies
Bump devDependencies to latest and make pass
2016-05-03 11:44:58 +03:00
Santhosh Thottingal
0cc7f2f54b Call onCancel from hide
See issue #215

The cancel, hide methods are still confusing, may be in some other patch
we need clean up this. A grep shows ULS use onCancel only with compact
language links.

Change-Id: I0e08d169952945237efce9108d51cb68c4a29ad5
2016-05-02 17:27:18 +05:30
Ricordisamoa
0b8a4c9338 Bump devDependencies to latest and make pass
grunt                  ^0.4.5  →  ^1.0.1
 grunt-cli             ^0.1.13  →  ^1.2.0
 grunt-contrib-jshint   ^0.8.0  →  ^1.0.0
 grunt-contrib-qunit    ^0.5.2  →  ^1.2.0
2016-04-30 09:52:55 +02:00
Niklas Laxström
2924e68dce Merge pull request #203 from kartikm/bh
Use same format for bh/bho
2016-04-22 15:33:24 +05:30
Kartik Mistry
aee209878f Use SPDX license field in package.json 2016-04-22 14:39:59 +05:30
Santhosh Thottingal
ff8051a5c6 Update the screenshot 2016-04-22 11:17:55 +05:30
Santhosh Thottingal
d61eb1ffd4 Merge pull request #216 from wikimedia/drop-compact
Remove compact mode
2016-04-22 11:12:07 +05:30
Santhosh Thottingal
5ceba61905 Merge pull request #217 from wikimedia/icon
Update search icon
2016-04-21 17:12:13 +05:30
Niklas Laxström
2f2f814738 Compress images 2016-04-21 12:27:11 +02:00
Niklas Laxström
c103030cc3 Replace search icon with a new one
Also removed the smallening of the search icon narrow mode.
2016-04-21 15:50:50 +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
Niklas Laxström
19e670153e Merge pull request #214 from kartikm/kbp
Update jquery.uls.data.js for #213
2016-04-12 11:46:15 +03:00
Kartik Mistry
73462b3de1 Update jquery.uls.data.js for #213 2016-04-12 14:14:32 +05:30
Kartik Mistry
87024ee575 Merge pull request #213 from wikimedia/Nikerabbit-patch-1
Add [kbp] Kabɩyɛ
2016-04-12 14:07:21 +05:30
Niklas Laxström
1e096ab6d2 Add [kbp] Kabɩyɛ
https://translatewiki.net/wiki/Thread:Support/Translating_the_500_most_used_messages_into_Kabiy%C3%A8
2016-04-12 11:34:56 +03:00
Santhosh Thottingal
5568fb491c Merge pull request #212 from wikimedia/heatter
Some cleanup to the language filter
2016-04-11 11:27:36 +05:30
Niklas Laxström
40e67f5da2 Localisation updates from https://translatewiki.net. 2016-04-07 08:07:30 +02:00
Niklas Laxström
20d5e431a3 Some cleanup to the language filter
No longer using grid to position the icon, but nested divs instead.

Tweaked some padding etc. related cleanup.
2016-04-06 17:26:44 +03:00
Niklas Laxström
30d86fb8ba Merge pull request #210 from wikimedia/209
Remove unwanted script related code in search method
2016-04-06 15:03:03 +03:00
Santhosh Thottingal
bf0c555b8c Remove unwanted script related code in search method
Fixes issue #209

Change-Id: I33345fe553abcc9bfd6288fe579878a2cf307e8f
2016-04-06 16:38:44 +05:30
Santhosh Thottingal
7b3cd3d885 Fix: search using API does not respect the passed language list
If there is a search api configured, ULS list all languages that
pass the search irrespective of whether a language is present in
options.languages

Change-Id: I0be80397bb5b4071bc7bc5e787fe107c98e3d912
2016-04-06 15:21:33 +05:30
Santhosh Thottingal
2e16e9b701 Remove the reference to map block
Change-Id: I141d468d352176f000a750d40b54b4dbf799ba05
2016-04-06 10:23:38 +05:30
Niklas Laxström
bd78c24be0 Merge pull request #208 from wikimedia/207
Support language codes that are redirects
2016-04-05 08:58:13 +03:00
Santhosh Thottingal
7780bfb17a Add left and right padding for search header of compact ULS
See https://phabricator.wikimedia.org/T130633

Change-Id: I59a632c312682a92cf8341dec9de2779a81bb298
2016-04-05 10:15:27 +05:30
Santhosh Thottingal
8b3d77dae1 Support language codes that are redirects
Addressing issue #207

Such language codes were not listed in ULS language list.

Root cause was $.uls.data.getLanguagesByScriptGroup was returning
a map of script groups, which contained only resolved language codes.
And later in append method of jquery.uls.lcd.js, there is a check if
that language code is part of languages list passed as option to uls()
call. This test fails and the language code does not get added to display.

Change-Id: Iec914a9694a46eef5750ef3af7346d66e052ab77
2016-04-05 09:17:09 +05:30
Niklas Laxström
1e8c2168f6 Localisation updates from https://translatewiki.net. 2016-03-03 08:27:54 +01:00
Niklas Laxström
35e3d30f58 Localisation updates from https://translatewiki.net. 2016-02-29 17:21:42 +01:00
Niklas Laxström
6ee1cb6eaa Localisation updates from https://translatewiki.net. 2016-02-25 09:21:57 +01:00
Niklas Laxström
3bdbc65b12 Localisation updates from https://translatewiki.net. 2016-02-08 11:48:35 +01:00
Niklas Laxström
49f5f1a6b8 Localisation updates from https://translatewiki.net. 2016-01-25 07:42:24 +01:00
Niklas Laxström
9a7d4d0576 Localisation updates from https://translatewiki.net. 2016-01-18 08:12:31 +01:00
Niklas Laxström
e019587901 Localisation updates from https://translatewiki.net. 2016-01-04 15:49:25 +01:00
Santhosh Thottingal
f2a27323b6 Merge pull request #205 from atlight/patch-1
Fix the cancel event function to prevent erroneous close
2016-01-02 10:09:06 +05:30
This, that and the other
f53de5469b Fix the cancel event function to prevent erroneous close
Changed the conditions for the cancel event function so that the ULS popup does not close when a descendant element of the trigger is clicked.

Was erroneously merged to gerrit as https://gerrit.wikimedia.org/r/#/c/261810/, I forgot that this was an upstream library.

https://phabricator.wikimedia.org/T122722
2016-01-02 02:25:23 +11:00
Niklas Laxström
e6f7672b75 Localisation updates from https://translatewiki.net. 2015-12-29 11:31:11 +01:00
Kartik Mistry
95628583e1 Use same format for bh/bho
Just like other mapping done in the file.
2015-10-28 11:07:21 +05:30
Siebrand Mazeland
528ccdff52 Localisation updates from https://translatewiki.net. 2015-10-14 12:58:02 +02:00
Santhosh Thottingal
d4de09ffb9 Improve the hide-show logic of ULS
* The events are suppressed on click of ULS trigger, it is an anti
  pattern. It can cause other overlay dialogs, if any, to stay with
  ULS and causes UI glitch. This patch just propagates the events and not
  eats up.
* The show method was hiding all other ULS dialoges open using a
  global $('.uls-menu').hide(). This is again not a good pattern.
  A plugin instance should not interfere with other instance's state.
  More over, calling jQuery hide() method on menu instead of plugin's
  hide method leaves the other plugin instance in a corrupted state.
  The plugin hide method does more things than just hiding the menu.
  It has a 'shown' book keeping property to update. This kind of
  corrupted state was causing bugs like https://phabricator.wikimedia.org/T114123
* While avoiding the above two antipatterns, the way ULS was hidden when
  clicked on any 'other' part of body was improved. It now uses event.target
  to correctly handle the 'click-outside-hide' logic

All these above changes does not change any existing UX.

Change-Id: I40b355115cbda54a68e8d58d3750fb9f1c3b6920
2015-10-06 10:35:05 +05:30