Commit graph

173 commits

Author SHA1 Message Date
Fomafix 895f737b87 Workaround for a scrolling bug in IE8
Bug: 61908
Change-Id: I69dbfa267b26916628181553b213f05add909c99
2014-02-25 12:41:12 +00:00
Ori Livneh f5b2b18a01 mw.loader#version -> mw.loader#getVersion
mw.loader#version was removed in I57d340015.

Change-Id: Icb8e591c379b083cfc5f05a1a24320e0f13f7d12
2014-02-18 14:54:29 -08:00
Xelgen 861fe4049b Adding Armenian icons for formatting buttons
This commit adds Armenian icons for Bold and Italic buttons.

Icons were created by me, according to guide at
https://usability.wikimedia.org/wiki/Text_format_icons

Links to icons used on Commons:
http://commons.wikimedia.org/wiki/File:Toolbaricon_bold_%D4%B9.png
http://commons.wikimedia.org/wiki/File:Toolbaricon_italic_%D5%87.png

Glyphs are from font based on Droid Serif,
developed by Ruben Tarumian (Hakobian) http://tarumian.am,
was released PD, for project of http://hy.am funded by OSI.

If my understanding is right those icons had to be described only
in jquery.wikiEditor.toolbar.config.js file.

Change-Id: I6afa67d4d87a359b4f596840873d8f142d85b8f9
2014-02-11 23:17:07 +00:00
umherirrender 37a1deb799 document.selection is undefined in IE11
IE11 replaced document.selection by window.getSelection, which breaks
dialogs in WikiEditor, because document.selection.createRange was
accessed without check. Inserting this check unbreaks the dialogs.

Bug: 57489
Change-Id: I70d49fb43bbf7602f43e9a8086ecd32027cb6d6f
2014-01-05 17:49:54 +01:00
Timo Tijhof ab13c162cf jquery.wikiEditor.iframe: Restore function signatures
Follows-up 1a2daca06a, which broke this file due to
a bad find/replace action.

Change-Id: Ia6db450296ac579dade2ec4ff116e2519d69c6d3
2013-11-22 12:55:25 +00:00
Timo Tijhof 1a2daca06a Kranitor: Make JSHint pass
eqeqeq:
* Change loose comparisons to strict comparisons where
  it seems safe to use a strict comparision instead.
  Mostly comparisons to strings or objects, and comparisons to
  numbers where the other value is known to be a number, too.
  E.g. foo == 'string', bar == node, indexOf() != -1.
* Add eqeqeq:false to files where there are non-obvious usages
  left.

onevar, quotmark:
* Disabled in files with lots of style violations.

unused:
* Remove unused variables that have no side-effects in their
  assigned expression.

Coding style cleanups on affected lines where trivial.

Change-Id: I5db155a632740e24cb52dba2177c7fc35d5aebd5
2013-11-10 07:36:03 +00:00
goibhniu bddd21b300 Peserve jQuery references to avoid conflicts
* Added closures for jQuery where missing.
* Added closures for mediaWiki where missing.
* Using ready( $ ) where possible.
* Removed empty CSS block.

Change-Id: Ifdd4b10063221a4967d812eafd43858623ec5d28
2013-11-06 23:34:46 +01:00
jenkins-bot 8fe2f268d8 Merge "Use mediaWiki.message( ... ).plain()" 2013-09-28 12:18:39 +00:00
Helder.wiki 1b797b7f6a Use mediaWiki.message( ... ).plain()
Bug: 42107
Change-Id: Ic17aa1ff18528cec402bef08cace6987529f2782
2013-09-28 09:10:11 -03:00
jenkins-bot d83f06de1a Merge "Make edit toolbar accessible to screen readers" 2013-09-07 12:19:32 +00:00
Derk-Jan Hartman fc407956e9 Remove extra comma to avoid fatal in IE7
Followup to:I99c16f01176a954ad924a5c493e43fb47206fa4b

Change-Id: I4394b252ffee93f4647d1908c29626c20bb82366
2013-08-23 21:16:28 +02:00
umherirrender 7506688ca2 Remove extra comma to avoid fatal in IE7
jslint:
modules/jquery.wikiEditor.toolbar.config.js: line 818, col 43, Extra
comma. (it breaks older versions of IE)

Bug: 52715
Follow-Up: I8c5a52c74fa1bc83c662d748731f96bcd91374d0
Change-Id: I99c16f01176a954ad924a5c493e43fb47206fa4b
2013-08-23 15:09:15 +02:00
Marius Hoch 8679bfab53 Make edit toolbar accessible to screen readers
Removed redundant attributes, added aria-* attributes and properly
declared the links with role=button.
Tested with JAWS 14 and NVDA.

Bug: 24592
Change-Id: I27e18798d18b63655ea716eee2be1c7ab5303759
2013-08-19 12:18:22 +02:00
MatmaRex 6f8acfaf2b Hide MediaWiki's "Editing help" link, as we provide it in the toolbar
Ported from Vector extension's ext.vector.footerCleanup module, but
with less hacks. Depends on change Id9269876 in MediaWiki core.

Also remove unhelpful comments.

Bug: 43689
Change-Id: I36ecd06b6fc0cc5ce95bc43db303b1b542e6c81b
2013-07-26 12:20:08 +02:00
jenkins-bot c013c87ef1 Merge "Warn if you try to link to a disambiguation page" 2013-07-15 20:48:19 +00:00
Krenair c8d0280517 Warn if you try to link to a disambiguation page
As marked by the Disambiguator extension.

Bug: 50160
Change-Id: I8c5a52c74fa1bc83c662d748731f96bcd91374d0
2013-07-15 13:47:16 -07:00
addshore c3293da273 localise buttons for ky
Change-Id: I2f489142080f4541b1c76590cc18065f5bf56a7e
Bug: 38401
2013-05-27 15:53:35 +01:00
jenkins-bot b92cafd27d Merge "(Bug 45863) Set custom bold and italic buttons for Basque language" 2013-04-16 08:55:40 +00:00
Trevor Parscal 17a90bc74e Make toolbar group labels spans instead of divs
The mix of <div> and <a> tags, being floated left inside a floated left
group seems to cause a flow error in some browsers, which ends up
wrapping the last item in the group. The give-away to what was going on
was that this only happened for groups with labels.

While diagnosing it, I notice that the bug did not occur if the labels
were hidden (suggesting is has something to do with the label being
included in the flow of the group, not the build-out), and converting
them to spans fixed the problem.

Bug: 27698
Change-Id: I2a842a86ef77a8934095c04408b7fabbcfbb2476
2013-04-08 10:55:07 -07:00
jenkins-bot 4b395a27cf Merge "Optimize pngs" 2013-04-02 22:29:35 +00:00
jenkins-bot d33ec49f0c Merge "Remove ClickTracking calls" 2013-03-27 20:57:18 +00:00
Ori Livneh 61205be62a Remove ClickTracking calls
ClickTracking is deprecated; the config var gating this behavior is set
to false; the data is going to /dev/null; no one is interested in
analyzing it. I think it's dead, Jim.

Change-Id: I71ea8c174e5e38b28f128ccd380ed2a25ad50606
2013-03-27 13:41:05 -07:00
Niklas Laxström 31459ac555 Optimize pngs
Change-Id: Ic732069c0f25d4f5cdd0f1b890dc1b86aeb6c1ee
2013-03-13 10:04:45 +00:00
Platonides 3b9ed0d5a3 (Bug 45863) Set custom bold and italic buttons for Basque language
Use L for Bold (Lodia) and E for Italic (Etzana)

Change-Id: I99848be43911845353a8b148dbc91e6b65c492e1
2013-03-08 22:19:33 +00:00
Inductiveload 86b38002cd Toolbar icons for bold L and italic E
Created by Wikimedia Commons user Inductiveload, using inkscape
and a Gimp script that emulates the actions listed at
 https://usability.wikimedia.org/wiki/Babaco_Designs/Icon_Localization

Files available under license Creative Commons Attribution 3.0 by
 https://commons.wikimedia.org/wiki/User:Inductiveload

Original files:
* https://commons.wikimedia.org/wiki/File:Toolbaricon_bold_L.png
* https://commons.wikimedia.org/wiki/File:Toolbaricon_italic_E.png

Change-Id: I86e69479ead45ab9b3b44ba4d599f8403b1abe4d
2013-03-07 22:54:50 +01:00
Platonides 1dc0daeccb (Bug 45732) Set custom bold and italic buttons for Galician language
Use N for Bold (Negra) and C for Italic (Cursiva)

Change-Id: I89423dfb5b52065bb4bd25f2a54a6b2ef8e982ea
2013-03-07 19:43:14 +01:00
jenkins-bot 85237ff3f8 Merge "(bug 42198) fix ext.wikiEditor.publish so that it actually works" 2013-01-30 11:46:10 +00:00
Matthew Flaschen ede8d1d8f1 Add jQuery event trigger for when the initial sections are done
* This is similar to wikiEditor-toolbar-buildSection-*, but for when
all of the initial sections are done.
* It allows other code to render after this vertical shift is done.

Change-Id: I4705d09b9ef90c1ab8dad93db3f91e70c5fd4d5b
2013-01-28 23:05:48 -05:00
MatmaRex fb83a8416d (bug 42198) fix ext.wikiEditor.publish so that it actually works
Two fixes:

* The Cancel button previously simply did nothing. However, since it's a
  button, it caused the form to be submitted - essentially saving the edit
  instead of cancelling it.

  Now it sets window's location to "Cancel" link's href (already present in
  vanilla MediaWiki) and cancels the submitting of the edit form.

* The Publish button did nothing as well (except that it cancelled the form
  submission). This was caused by the dialog it was supposed to show not being
  initialized.

  I simply forced its initialization using "immediateCreate: true".

Change-Id: I64589985b6075183e66eaa40bc457acbbae380b1
2013-01-24 19:56:38 +01:00
Krinkle d8f32148be Merge "Georgian bold toolbar icon reworked. Followed by general style." 2013-01-07 20:15:42 +00:00
Reedy 743d550709 Merge "Remove source images and just store compressed images in the folders" 2013-01-07 13:53:39 +00:00
Siebrand 2481f782d7 Merge "Losslessly compress images" 2013-01-04 14:53:39 +00:00
Reedy 80a5a5964e Losslessly compress images
Change-Id: Ia4f690ec92e269289ff2c3df0cb3e30c26ce85a0
2013-01-03 01:58:06 +00:00
Reedy 3223a71d5a Remove source images and just store compressed images in the folders
Change-Id: Ia107210dfca766ad4a8de4a469638a5c7d877c6d
2013-01-03 01:56:56 +00:00
Xwybylty Soslan 87b0c0dfc4 Georgian bold toolbar icon reworked. Followed by general style.
Change-Id: Iaf59456674566e5a7ee6da9fb788838dd14bc4aa
2013-01-03 02:08:38 +04:00
Xwybylty Soslan 73c92a3ca2 Added toolbar icon for Ossetian language. Added Ossetian to toolbar configuration.
Change-Id: Icd0086d3c8944ae33c9a25801abecf67bdbeb7af
2013-01-03 01:17:45 +04:00
Siebrand Mazeland db7b05404f No longer use parameter in 'wikieditor-toolbar-tool-table-toomany'
The value is 1000 and this number can only be change in the JavaScript
code. It's unlikely this will be done, and if it's done, the message can
be changed easily.

Change-Id: Iff2553112af52ccb22627301c68db63595ec3cf2
2012-12-28 21:56:43 +01:00
Yuri Astrakhan 61ab2e1078 (bug 35064) Added Cyrillic chars to Special Symbols editor
Change-Id: Idb39c6b3c9612e8a0e2daff73c71da8e4469e859
2012-12-23 11:03:47 -05:00
MaxSem dd24768983 Merge "Bug 42039 - Fix some file-related issues in the distribution" 2012-12-16 01:02:37 +00:00
isarra 92b0870d69 (bug 40608) Width tweaks for consistency with surrounding elements
Specifies textarea width of 100% for legacy skin support, and per suggestion by Daniel Friesen, adds a box-sizing specification to prevent the WikiEditor interface from overflowing from the bodyContent.

Change-Id: I8b3369f584c636dfb03685c16f838ea94e6fc0fb
2012-11-26 23:14:47 +01:00
MarkAHershberger a72179e943 Bug 42039 - Fix some file-related issues in the distribution
Change-Id: I725b7ca86d037dafc1ea7ac4e744f8e822953841
2012-11-12 09:55:09 -05:00
Kaldari 27013f26e5 (bug 40735) Enabling editors to distinguish dashes in the WikiEditor
Right now, the Special Characters interface in WikiEditor shows all
characters in a monospace font which makes it especially difficult to
distinguish the different dash characters. The solution implemented
in this change is to add title tooltips to the following characters:
en dash, em dash, minus sign. The title tooltips are localizable and
can be added to any other characters as needed. If we eventually want
to add title tooltips to all the characters, we should come up with a
config shortcut like we're using for Hebrew vowels.

Change-Id: I7eb207acda045a868ec4c625c39bfd3d1f78ea17
2012-10-16 16:26:04 -07:00
Siebrand Mazeland 06f3e09e21 CSS cleanup.
Change-Id: I9ab92becb4d7bbff91448a504457f69c8179b010
2012-09-28 01:28:50 -07:00
Krinkle 598763f3cb Merge "Fix for bug 38827. Setting thumb as default format" 2012-09-13 05:47:45 +00:00
Derk-Jan Hartman 667ddb5de9 (bug 39029) Use wgExtensionAssetsPath for path to "extensions/"
Change-Id: I3b816c168af0f5f5dec68fae31b0ca83f23bd871
2012-09-03 06:52:13 +02:00
Siebrand Mazeland c93dc3714c Remove unnecessary colon and redundant closing tags
Change-Id: Icc9d4d647ce189ba8044627bcdface0c7a33e31d
2012-08-26 01:01:36 +02:00
Eranroz 8cf557addf Fix for bug 38827. Setting thumb as default format
This patch sets the "thumb" format as the default format for images added
using wikieditor toolbar, with or without dialogs enabled.

Change-Id: I707b02c63b7253bd29b960a58c0fc10e1d013fb4
2012-08-19 22:02:05 +03:00
Derk-Jan Hartman 7a498e18fb (bug 24566) Make the search and replace dialog non-modal
This has been a popular request, because people often have to
interrupt their search to make certain changes and then want to
resume.

Change-Id: Id537ffe439d4522add300d8c1355758774dca1c9
2012-08-04 16:16:25 +02:00
Amir E. Aharoni 2dfbca2b6d Adjust file size input length
The message that currently appears in the box is '(default)' or its
translation. This translation can be a lot longer than it is in English.
This change sets the length according to the length of the actual string.

Change-Id: I9f2151d39e6f3d1cc708ba71e069316c265a8d20
2012-08-02 15:27:12 +03:00
Rob Moen c535fb3fb6 (bug 38820) Fixed missing and invalid page conditional.
API returns an empty string for invalid and missing properties.
If missing / invalid property are defined, page is correctly flagged.

Change-Id: Id8b28f9ce4fc250853206019e864fe108351add9
2012-07-31 10:17:40 -07:00