Commit Graph

589 Commits

Author SHA1 Message Date
jenkins-bot
ee70cf04c9 Merge "Use mw.hook for notifying cancel of settings window to modules" 2013-08-22 08:03:38 +00:00
Amir E. Aharoni
7330295ce2 Use the old way of checking browser support for MW < 1.22
Bug: 52322
Change-Id: I346c1119b2ae841b3dbb2e7b8a5a2d924269b150
2013-08-22 09:32:59 +03:00
Santhosh Thottingal
4704cf5182 Use mw.hook for notifying cancel of settings window to modules
This avoids mandate of having 'cancel' method defined in settings module.
Also avoids looping of all modules while cancel is happening.

Change-Id: I87d0975f2ef1bdee61f71d66eabe3040b81876b8
2013-08-22 11:51:26 +05:30
jenkins-bot
00e248e1f9 Merge "Provide mw.hook when not provided by older MediaWikis" 2013-08-22 04:17:09 +00:00
Niklas Laxström
ec518a03b4 Provide mw.hook when not provided by older MediaWikis
Change-Id: I8d0826722064551cc46be26215ffb954f39babb0
2013-08-22 09:46:07 +05:30
Ebrahim Byagowi
0ff6ab13cb Add Nazli as a serif font for Persian Script
It is the font used in book maker for Persian Wikipedia. Its font
family (Nazanin) is one of widely used font on Persian documents.
It is needed for print output of Persian Wikipedia articles

Change-Id: I2c658f599b5c05882673f42c29c80ae826ddc047
2013-08-21 16:56:15 +03:00
Amir E. Aharoni
628923c812 When applying settings, log ime-change only if needed
Change-Id: I62b4ce777948c18cec5117279523198f4514c3a6
2013-08-20 12:42:52 +03:00
Amir E. Aharoni
4e04182ecd Fire the ime-enable/disable hook upon saving the preferences
Change-Id: I98e502cd8dc1990b10b1f824614c84d3bf5b993f
2013-08-20 08:31:21 +00:00
jenkins-bot
6cf1486399 Merge "Log ime-change event" 2013-08-20 05:44:08 +00:00
Amir E. Aharoni
3b6d5cc83e Log ime-change event
Change-Id: I6dfc769f0de536e2ef35b165fe7a35f196bb181b
2013-08-20 08:34:52 +03:00
Amir E. Aharoni
a3bca89a42 Implement language-selection-method event
Change-Id: If2d207f8a221c8f2a560b1399ad69a3032b2064b
2013-08-20 05:16:35 +00:00
Kartik Mistry
e5891b83b5 Add a Lao web font
Bug: 52962
Change-Id: Ia8cf7fa8c8f2832da35af52899b4a7c5bc05e5d3
2013-08-19 23:49:06 +03:00
Kartik Mistry
f244ef66d1 Add a Sinhala web font
Bug: 52964
Change-Id: I04a05c01c079ac6a4b109fe0c4a6c36c7732fcae
2013-08-19 23:30:43 +05:30
Amir E. Aharoni
0f34b4d934 Fixing "Common language" functionality
If was broken in
Icda498f676d1d3ddaefad75fd9212150f6966666

Bug: 53035
Change-Id: Ida29364073b07b985050565cacc6634c134f8d6c
2013-08-19 16:34:43 +03:00
Santhosh Thottingal
7649b47f5c Followup I59dfcfb25c, language change work with out event logging
In I59dfcfb25c, for logging events when page is navigating away, we
used callbacks with mw.hook. That is wrong approach. If event logging
is disabled those callbacks will never called: it broke language change
and all use cases which navigates away from current page.

Event logging should not interfere with any ULS functionality. If ULS
functionality depends on callbacks from event logging, it is wrong.

In this patch, we give a small time window to make sure event logging is
fired, but we won't wait for its success or failure.

If eventlogging is disabled, this time window does not exist.

Change-Id: I0b7d9d8b9d1d01b99422010596ebfa80b2589d04
2013-08-19 10:13:56 +00:00
Niklas Laxström
1f66cb22bc Log no-search-results event
Change-Id: Ia272a6783d56c75ba775d71195104aad21214121
2013-08-19 08:13:55 +00:00
Santhosh Thottingal
44bd73325a Log font-change event
Change-Id: I093e27d74d047a639082a5da6442944f590c67dc
2013-08-19 06:00:26 +00:00
jenkins-bot
80715de3b2 Merge "Add the Nuosu SIL font for the Yi language" 2013-08-19 05:53:01 +00:00
Santhosh Thottingal
8f5be106f5 Update jquery.ime library
upstream: http://github.com/wikimedia/jquery.ime

changes:
* Support for contenteditable, like the VisualEditor surfaces. This
  support is very minimal now. Because of VE bugs on IME support, many
  things are broken. But one-one keyboard mappings should work with less
  issues. The UI of jquery.ime is not integrated with VE toolbar
* More input methods
	- IPA-X-SAMPA by Amir
	- Armenian keymaps by  Aleksey Chalabyan
	- Kurdish keymaps by Ghybu
	- Кыргыз keymap by Amir
	- Central Kurdish keyboards by Çalak
* A lot of input method bug fixes multiple contributors
* Minor UX fixes

Introduces Rangy library.
A module named rangy is defined in VisualEditor extension with more features of rangy.
Here we need only the core library. This module is loaded dynamically from
client when rangy is undefined. If VE is present rangy will be defined, the module
defined in VE will be used. ie, This get loaded only when VE is not present and
user trying to type in a contenteditable.

Bug: 49569
Bug: 50849
Bug: 50220

Change-Id: Iadad5a4e5972fbd1359847526d28e9dbbe00a7c4
2013-08-19 04:40:08 +00:00
Amir E. Aharoni
100bda017e Whitespace
Change-Id: I8855c3e2f237a9a22573509d70babea701896526
2013-08-18 18:10:40 +03:00
Amir E. Aharoni
8e051c3aaf Add the Nuosu SIL font for the Yi language
Change-Id: I7836f85f0599e4eb3b40168021ac0e3740e03f95
2013-08-17 15:58:11 +03:00
Santhosh Thottingal
117cc5bf46 eventlogger module for ULS
Separating event logging out of ULS functionality. Event logging
is now loosely coupled with ULS. ULS core modules can emit an event
whenever EventLogging is required. The eventlogger module will act
on the event if configured.

Change-Id: I59dfcfb25c1acb85376b56239f2355ee7c4aff1e
2013-08-15 17:08:15 +03:00
jenkins-bot
8defd1f4a8 Merge "TypeError: window.navigator.userLanguage is undefined" 2013-08-15 08:39:56 +00:00
jenkins-bot
d0b9d2717f Merge "Log settings-open event" 2013-08-14 09:36:57 +00:00
umherirrender
92a021e147 TypeError: window.navigator.userLanguage is undefined
This can happen, when the user deletes the pref User languages from the
browser.

Change-Id: Ieaf783fbae113724704e2cce2e166e56935e8ce1
2013-08-12 18:14:49 +00:00
Siebrand Mazeland
64cd234e27 Change comma to semi-colon
Cannot cause confusion this way.

Change-Id: I75e6dcd9e9dd45e8b9c605c28d766f87e06dd271
2013-08-05 17:21:08 +00:00
Siebrand Mazeland
e75b174b10 Make return values consistent
Tipsy does not expect a return value.

Change-Id: I9172dfe18ee1dc6d7773ce861a8a8b52638bc7b6
2013-08-05 17:20:10 +00:00
Siebrand Mazeland
8b1e6b911b Fix incorrect documentation
Change-Id: I646a5ccb2ff9e3e7f8871b4e55b55ec881c4301d
2013-08-05 09:23:19 +02:00
Niklas Laxström
df18f0a5ff Log settings-open event
Change-Id: I55fb9e4b8b6b210003f6bbad07486e1c2a8cba4f
2013-08-05 15:19:57 +08:00
Niklas Laxström
0af4375e7c Fix spelling mistake in variable name
Change-Id: I791555dc4a04beb6109e212314f8f4747fc8b6d9
2013-08-05 04:04:19 +00:00
jenkins-bot
52b8c80092 Merge "Log language-change for interface language" 2013-08-05 03:29:17 +00:00
jenkins-bot
bd035b2a6f Merge "Add event logging for more languages in input settings" 2013-08-04 08:57:20 +00:00
Amir E. Aharoni
8c8b82ac4b Add event logging for more languages in input settings
Change-Id: I98b048ad8fdb923bc7e0834d2021c49b687ad9da
2013-08-04 08:56:19 +00:00
jenkins-bot
b5c89aa14a Merge "Add event logging for more languages in display settings" 2013-08-04 08:53:01 +00:00
Amir E. Aharoni
f2f006788c Add event logging for more languages in display settings
Change-Id: I5d358d4e4d2a526381cd06fdeba98e7254418a24
2013-08-04 08:51:37 +00:00
jenkins-bot
4369a413a7 Merge "Add newline at end of file." 2013-08-03 15:46:03 +00:00
Niklas Laxström
425709cdb3 Log language-change for interface language
Change-Id: Icf8067078043be0f3a1c4f2c645835d88414b616
2013-08-02 13:43:18 +00:00
jenkins-bot
b1c2abe773 Merge "Log ui-lang-revert" 2013-08-02 13:17:53 +00:00
jenkins-bot
c7e32cfe82 Merge "Log login-click event" 2013-08-02 13:14:28 +00:00
Niklas Laxström
e8479a070d Log ui-lang-revert
Change-Id: Ic48dbd7a9d4d43812f437e3c9f17d1ee208166e8
2013-08-02 13:14:27 +00:00
Niklas Laxström
8e1726e745 Log login-click event
Our logEvent wrapper now returns jQuery.Promise too.

Added timeout out parameter to our logEvent wrapper. Unlike
GettingStarted, I didn't create separate logUnlessTimeout
function.

Chrome apparently emulates enter on links as a click, so
this catches enters, left and middle clicks, but not if
the link is opened via right click menu. Might not catch
enter in all browsers.

Change-Id: I4b0eb56e7c7d6e56f8fd99d536f9b60b94a2e09e
2013-08-02 13:03:15 +00:00
Siebrand Mazeland
b3677810c4 Add newline at end of file.
Change-Id: I96f7633e3a0251e0ba836ca0c1b5265cdc3958e1
2013-08-02 14:15:31 +02:00
jenkins-bot
4332421aae Merge "Fonts for angwiki" 2013-08-01 06:05:19 +00:00
Kartik Mistry
baf0efd40a Fonts for angwiki
Fonts for angwiki (Old English Wikipedia) and other Old English
wikis.

* Fonts are from later Git snapshop (2013-01-17)
* Stripped hints to reduce sizes.

Bug: 51917
Change-Id: I276b3de4b1b11565c5fa25cfd8312bc4dbc8fab1
2013-08-01 10:06:37 +05:30
Santhosh Thottingal
c4631fdf51 Top position the ULS for IME menu wrt the input field
Currently it is positioned relative to the ... menu item.
It caused weird positioning at some places.
Positioning it relative to the input field makes more sense.

lazyload option was removed from jquery.uls. Removing it from here.

Change-Id: I331051a38d7dfd97466601bfcc2facaf446d0db9
2013-07-30 15:55:42 +03:00
Santhosh Thottingal
82fbfe62e7 Load jquery.ime only when user focus on editable fields
To reduce javascript size for page load.

Change-Id: Ibf2ccd5b5501720837051d6e268b122e8a9f8590
2013-07-30 14:18:55 +03:00
jenkins-bot
b0b1768771 Merge "Add Shapour font for Pahlavi script" 2013-07-26 22:42:43 +00:00
Amir E. Aharoni
56dd512725 Revert "Load jquery.ime only when user focus on editable fields"
This reverts commit 63d547915f.

Bug: 52115
Change-Id: I1d6b65622e8a103a8a892beacf268e77b9e1b2d0
2013-07-27 00:56:18 +03:00
Santhosh Thottingal
63d547915f Load jquery.ime only when user focus on editable fields
To reduce javascript size for page load.

Change-Id: I71928ac5149cbcf2cc75073fdf628403e6abe456
2013-07-26 16:08:35 +03:00
Santhosh Thottingal
d92c75518b Delay loading of language settings javascript
Load them when language settings is opened using cog or ULS icon click

Change-Id: I472497c549bff0fd578156fa0113dae2d6a7a7fb
2013-07-26 15:55:07 +03:00