Commit graph

260 commits

Author SHA1 Message Date
Timo Tijhof
e6fadade69 Update jquery.qunit to upstream v1.7.0
* Upstream
 - tag: v1.5.0 -> v1.7.0
 - tree: https://github.com/jquery/qunit/tree/v1.7.0
 - commit: 0d596a809d

* Misc:
 - Updated existing release-note entry for QUnit update
 - Moved upstream updates away from "bug fixes".

Change-Id: I8da92dc38cad5dc4b04459a3e876dd028f2cf0f6
2012-06-07 17:41:22 +02:00
Liangent
57200c586c Fix a typo in resources/jquery/jquery.byteLimit.js
Change-Id: I35d501704567eb62bcb905f0d9633fefd4c23271
2012-05-25 13:08:36 +08:00
vlakoff
aca77ecdcb fix 2 missing "local var" JavaScript statements
Change-Id: I0e8a5824be635e526c385f3168ffc6269928a05c
2012-05-05 15:55:50 +02:00
Timo Tijhof
eab96abd70 (bug 35705) QUnit upgraded from 1.2.0 to 1.5.0
- Release notes:
  https://github.com/jquery/qunit/blob/v1.5.0/History.md

- Source of imported files:
  * https://github.com/jquery/qunit/tree/v1.5.0
  * e9b61098fd/qunit

- Unit tests still pass.
  Tested on [[Special:JavaScriptTest/qunit]] with wgEnableJavaScriptTest=true

Change-Id: I37b84dc39b1701c66fbc45fb9f3c92225f4df1cd
2012-04-04 21:37:03 +02:00
Reedy
3b85ab0624 Bug 35680 - Upgrade to jQuery 1.7.2
http://blog.jquery.com/2012/03/21/jquery-1-7-2-released/

Change-Id: I2d7d6eeef07552b796a68963ccd4f89f4c5939d7
2012-04-03 22:06:08 +01:00
Sam Reed
daa4e524b7 More occurrence typos 2012-03-19 21:40:39 +00:00
Krinkle
c2f213a404 [jquery.byteLimit] Set vars in return this.each loop
* Set vars in return this.each loop. This is the defacto standard plugin structure
  but somehow it slipped through this one (it's a 2 line wrapper, easy to miss).
* Added unit test (which failed before this commit)
* Fixes:
-- (bug 35294) jquery.byteLimit shouldn't set element specific variables outside the "return this.each" loop.
2012-03-18 22:13:55 +00:00
Ryan Kaldari
399e46df9c partial fix for bug 35057 - backporting a patch from jQuery 1.7.2pre 2012-03-16 14:44:46 +00:00
Krinkle
80ceef39e4 [jquery.client] clean up
* Move translate() out of the if-block, no need to re-define
* `else` after return in `if`
* update js coding style
* remove bogus '=' in comment
* line-wrapping of long arrays
2012-03-15 06:44:25 +00:00
Brion Vibber
a6d0faaa21 * (bug 35201) Edit buttons no longer cause jump in IE 9
Changed order of feature-detection checks so we prefer the IE method over the Mozilla method in encapsulateSelection. Fixes a problem where IE9 triggered the Mozilla mode, then mysteriously scrolled to the top of the page.

(IE9 and IE10 add a lot of standard and semi-standard HTML APIs, so this sort of thing happens from time to time. :)
2012-03-13 22:38:14 +00:00
Antoine Musso
13b1e66dab rv table sorting of IP and fraction
I am reverting, for now, two recent additions made to the table sorting:
 - r111884 fractions
 - r111829 IP addresses

Both need to be polished a bit more before landing in trunk. Please reapply
in a branch then once reviewed we can merge it in trunk, that will avoid
us a lot of "spam".
2012-03-06 10:17:46 +00:00
Trevor Parscal
eb8e7b2527 Added "Rekonq" to list of known browsers, which prevents it from being considered to be Safari. Whoever chose to make the user agent of this browser look like Safari 2.0 is an idiot. This should sort out bug #34924 2012-03-05 23:14:58 +00:00
Alexandre Emsenhuber
dd7ba538fc Removed incorrect svn:executable properties 2012-03-05 21:06:56 +00:00
Sam Reed
0a6ef23618 Bug 34896 - Update jQuery.json
Has whitespace changes (bit of a null diff in many cases)
2012-03-02 19:11:55 +00:00
Sam Reed
1f67da21d2 Squishing resources/ images 2012-03-01 20:04:42 +00:00
Derk-Jan Hartman
4c8e201755 Add support for sorting fractions in jquery.tablesorter
Fixes bug 15404
2012-02-19 19:56:56 +00:00
Derk-Jan Hartman
9427b08d08 Add support to tablesorter to handle IP/CIDR notation
This fixes bug 34475
2012-02-18 14:35:14 +00:00
Andrew Garrett
c32132b9bb Modification to jquery.localize.js: For HTML elements, allow a raw="" parameter, which prevents escaping. Reviewed by Trevor before I committed it. 2012-02-13 22:39:15 +00:00
Krinkle
1e42309616 [jquery.qunit.completenessTest.js] typo 2012-01-30 19:34:43 +00:00
Sam Reed
e6ee87eb66 Redoing r108960 with history
If it was a 3rd party library, there probably wouldn't have been any use doing this
2012-01-23 17:02:51 +00:00
Sam Reed
0464ee0045 Revert r108987 to copy properly 2012-01-23 16:59:32 +00:00
Jeremy Postlethwaite
2f1f0abc6b Adding the jquery cycle plugin. This is being used by the UnitTest extension. See r109762. 2012-01-23 16:13:20 +00:00
Krinkle
68cc777cea [jquery.footHovzer] Remove buggy scrollstate preserver
* Intended to preserver scroll-state (which is shifted when an element to the bottom gains height). However too unstable to be more handy that it is annoying when it is not.
* Follows-up r107982
2012-01-17 17:39:30 +00:00
John Du Hart
4537f5fe4e Adding jquery.arrowSteps to core, from UploadWizard 2012-01-15 06:07:24 +00:00
Niklas Laxström
1cd37d7e3b Typo 2012-01-14 22:00:27 +00:00
Rob Moen
b41d2608c9 remove concurrency resource per revert. follow up r108600 2012-01-11 18:00:49 +00:00
Rob Moen
6d01700a7e add js resource for concurrency api, check method for resource checkin & checkout 2012-01-11 00:17:17 +00:00
Mark A. Hershberger
c8b8f3a303 re r102301 — apply Krinkle's suggested fix. 2012-01-04 19:09:03 +00:00
Krinkle
2bed75d951 [jquery.footHovzer] new plugin for mw-log-console and mw-debug-toolbar
* Previously mw.log and mw.Debug both were in a fixed container on the bottom, overlapping each other. mw.log did increase the body's padding-bottom to account for the height so that all content is still visible, but it was still a problem when mw.Debug came along.
* This plugin adds a single fixed position element to bottom of the body, to which other stuff like mw.log and mw.Debug can append a non-fixed position container. That will take care of it.
* Method update() will re-check the padding and scroll position and fix where needed
* Reduces code a little bit
2012-01-04 01:28:01 +00:00
Rob Moen
178af33e21 fix tablesorter unit test in ie7. Add semicolon to end of statement in tablesorter class 2011-12-30 21:30:17 +00:00
Krinkle
99c9e3f8f9 Updating jquery.qunit from upstream
* Source: 0aba72f723
* 1.2.0pre (master/trunk) -> v1.2.0 (release tag)
2011-12-26 15:04:52 +00:00
Derk-Jan Hartman
934b01c67e Fix issue with sortable headers when nesting a table INSIDE a table header cell ?
Who comes up with these usecases ? :D

Fixes bug 32888
2011-12-09 22:39:04 +00:00
Sam Reed
bdb608323d * (bug 32879) Upgrade jQuery to 1.7.1
Tests in qunit still pass fine
2011-12-08 23:42:08 +00:00
Brion Vibber
b36d8ace6d Followup r104671: fix regression in jquery.delayedBind() due to change in param processing for jquery's bind()
Problem was per CR comment https://www.mediawiki.org/wiki/Special:Code/MediaWiki/104671#c26836 -- parameter count check changed in upstream jquery.bind(), causing the way we passed params to break if the optional 'data' parameter was left out.

Added QUnit test cases for jquery.delayedBind() with and without the optional 'data' parameter.
Undoes r104671 since the issue it was working around is fixed.
2011-12-02 21:47:46 +00:00
Roan Kattouw
0c51642cfd (bug 31212) History tab not collapsed when the screen is narrow. Patch by Michael M 2011-11-30 13:16:18 +00:00
Roan Kattouw
f0b2c1a92e (bug 32241) Fix flickering behavior in IE. Patch by Lupo. See also r102948 2011-11-15 09:59:32 +00:00
Roan Kattouw
fc3b1648de (bug 32241) WikiEditor scrolls the browser and does not insert in IE7, IE8, IE9 if the textarea doesn't fit on the screen. Patch by Lupo 2011-11-14 08:37:38 +00:00
Roan Kattouw
a09b519926 Revert r99307 and its friend r99309, improper use of !important per CR 2011-11-08 21:38:06 +00:00
Mark A. Hershberger
5ce9371f30 Fix Bug #32047: in table with class="sortable", thead is before
caption

Apply fomafix's patch for jquery.tablesorter.js (also reported upstream:
https://forum.jquery.com/topic/in-table-with-class-sortable-thead-is-before-caption
(currently in moderation)
2011-11-07 17:33:13 +00:00
Krinkle
7553ecf2f6 jquery.tablesorter: More selector fixes
* Limit to rowSpans (td or th) within tableRows that are a direct child of this table's tBody
* Follows-up r99092, r101417
2011-10-31 22:20:25 +00:00
Krinkle
57faa93023 jquery.tablesorter: Selector fixes
* Various fixes to limit the selector to the current table and avoid selecting similar elements from other, nested, tables.
* Should fix bug 32049
* Follows-up r97150 and likely some other refactoring commits
2011-10-31 22:12:26 +00:00
Roan Kattouw
d4e2a4bf57 (bug 31514) Followup r99031: allow clicking of links in table headers in a different way that doesn't break expand/collapse links. 2011-10-25 14:41:58 +00:00
Brion Vibber
d73613dbdb * (bug 31847) Fix positioning of WikiEditor 'header' insertions when selection is empty in IE 7/8
Follows up to the test cases added in r100391. jquery.textSelection's getCaretPosition() for IE needs to focus the textarea first in order to get consistent results when there's an empty selection -- getSelection() which returns the text already does this.

Because focus had previously been stolen by the drop-down menus in WikiEditor's toolbar, the saveCursorAndScrollTop() was getting a bogus result from getCaretPosition, saving that, then restoring the bad selection (wiping out the original caret position) right before going ahead with the encapsulateText call.

Now seems to get the correct caret position, and also doesn't appear to interfere with selections.
2011-10-21 00:15:45 +00:00
Krinkle
07ceebd3e2 Updating jquery.qunit from upstream
* Source: ee156923cd
-- Several bug fixes
-- New hooks system
-- Version numbers, finally (this is 1.2.0pre)
-- (BREAKING CHANGE) start/stop now takes count instead of timeout as first argument (read more at https://github.com/jquery/qunit/pull/125 and http://docs.jquery.com/QUnit/stop)
2011-10-20 22:35:27 +00:00
Krinkle
238c103636 Fix broken test by r99321 2011-10-16 22:33:04 +00:00
Krinkle
db8f977526 CSS clean up
* Apply code conventions (mostly whitespace and missing semi-colons)
* Minor other nitpicks
-- '! important' -> '!important'
-- Ucfirst -> lc; for color names and keywords
-- Remove uses of system color keywords (they are deprecated) [1] Most had fixed fallbacks already. Using those now.
-- Remove version query string (foo.png?2), last modified in r66151. Now obsolete with ResourceLoader
-- 0px to 0 where possible
-- Remove commented out css rules and declarations without any comment (debug stuff like /*div{ border:1px solid Red !important;}*/)
-- Remove empty blocks ( .foo { } )

[1] https://developer.mozilla.org/en/CSS/color_value#System_Colors
2011-10-15 23:33:47 +00:00
Roan Kattouw
c78b4fb6e4 Move jquery.validate plugin from branches/salvatoreingala to core 2011-10-15 23:13:26 +00:00
Roan Kattouw
94b410265b Followup r99923: spaces->tabs, add @embed 2011-10-15 23:08:01 +00:00
Roan Kattouw
4d8c7e96ed Add jquery.farbtastic module to core, copied from branches/salvatoreingala 2011-10-15 22:41:45 +00:00
Derk-Jan Hartman
6a706e93c2 Check if there is a prexisting tfoot, before creating a new one.
Follow up to r98669, though this was a problem that also could surface without tfoot emulation.
2011-10-08 19:28:10 +00:00