r105575 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105574‎ | r105575 | r105576 >
Date:19:17, 8 December 2011
Author:reedy
Status:ok (Comments)
Tags:
Comment:
Update jQuery.ui from 1.8.16 to 1.8.17
Modified paths:
  • /trunk/phase3/resources/Resources.php (modified) (history)
  • /trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-hu.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-kk.js (added) (history)
  • /trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-lb.js (added) (history)
  • /trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-mk.js (added) (history)
  • /trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-uk.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.accordion.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.autocomplete.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.button.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.core.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.datepicker.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.dialog.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.draggable.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.droppable.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.mouse.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.position.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.progressbar.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.resizable.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.selectable.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.slider.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.sortable.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.tabs.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/jquery.ui.widget.js (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.accordion.css (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.autocomplete.css (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.button.css (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.core.css (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.datepicker.css (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.dialog.css (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.progressbar.css (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.resizable.css (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.selectable.css (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.slider.css (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.tabs.css (modified) (history)
  • /trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.theme.css (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/Resources.php
@@ -341,9 +341,12 @@
342342 'is' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-is.js',
343343 'it' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-it.js',
344344 'ja' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ja.js',
 345+ 'kk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-kk.js',
345346 'ko' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ko.js',
 347+ 'lb' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lb.js',
346348 'lt' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lt.js',
347349 'lv' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-lv.js',
 350+ 'mk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-mk.js',
348351 'ml' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ml.js',
349352 'ms' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-ms.js',
350353 'nl' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-nl.js',
Index: trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-kk.js
@@ -0,0 +1,23 @@
 2+/* Kazakh (UTF-8) initialisation for the jQuery UI date picker plugin. */
 3+/* Written by Dmitriy Karasyov (dmitriy.karasyov@gmail.com). */
 4+jQuery(function($){
 5+ $.datepicker.regional['kk'] = {
 6+ closeText: 'Жабу',
 7+ prevText: '<Алдыңғы',
 8+ nextText: 'Келесі>',
 9+ currentText: 'Бүгін',
 10+ monthNames: ['Қаңтар','Ақпан','Наурыз','Сәуір','Мамыр','Маусым',
 11+ 'Шілде','Тамыз','Қыркүйек','Қазан','Қараша','Желтоқсан'],
 12+ monthNamesShort: ['Қаң','Ақп','Нау','Сәу','Мам','Мау',
 13+ 'Шіл','Там','Қыр','Қаз','Қар','Жел'],
 14+ dayNames: ['Жексенбі','Дүйсенбі','Сейсенбі','Сәрсенбі','Бейсенбі','Жұма','Сенбі'],
 15+ dayNamesShort: ['жкс','дсн','ссн','срс','бсн','жма','снб'],
 16+ dayNamesMin: ['Жк','Дс','Сс','Ср','Бс','Жм','Сн'],
 17+ weekHeader: 'Не',
 18+ dateFormat: 'dd.mm.yy',
 19+ firstDay: 1,
 20+ isRTL: false,
 21+ showMonthAfterYear: false,
 22+ yearSuffix: ''};
 23+ $.datepicker.setDefaults($.datepicker.regional['kk']);
 24+});
Property changes on: trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-kk.js
___________________________________________________________________
Added: svn:eol-style
125 + native
Index: trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-mk.js
@@ -0,0 +1,23 @@
 2+/* Macedonian i18n for the jQuery UI date picker plugin. */
 3+/* Written by Stojce Slavkovski. */
 4+jQuery(function($){
 5+ $.datepicker.regional['mk'] = {
 6+ closeText: 'Затвори',
 7+ prevText: '<',
 8+ nextText: '>',
 9+ currentText: 'Денес',
 10+ monthNames: ['Јануари','Фебруари','Март','Април','Мај','Јуни',
 11+ 'Јули','Август','Септември','Октомври','Ноември','Декември'],
 12+ monthNamesShort: ['Јан','Феб','Мар','Апр','Мај','Јун',
 13+ 'Јул','Авг','Сеп','Окт','Ное','Дек'],
 14+ dayNames: ['Недела','Понеделник','Вторник','Среда','Четврток','Петок','Сабота'],
 15+ dayNamesShort: ['Нед','Пон','Вто','Сре','Чет','Пет','Саб'],
 16+ dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Са'],
 17+ weekHeader: 'Сед',
 18+ dateFormat: 'dd/mm/yy',
 19+ firstDay: 1,
 20+ isRTL: false,
 21+ showMonthAfterYear: false,
 22+ yearSuffix: ''};
 23+ $.datepicker.setDefaults($.datepicker.regional['mk']);
 24+});
Property changes on: trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-mk.js
___________________________________________________________________
Added: svn:eol-style
125 + native
Index: trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-hu.js
@@ -2,19 +2,19 @@
33 /* Written by Istvan Karaszi (jquery@spam.raszi.hu). */
44 jQuery(function($){
55 $.datepicker.regional['hu'] = {
6 - closeText: 'bezárás',
7 - prevText: '« vissza',
8 - nextText: 'előre »',
 6+ closeText: 'bezár',
 7+ prevText: 'vissza',
 8+ nextText: 'előre',
99 currentText: 'ma',
1010 monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június',
1111 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
1212 monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún',
1313 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
14 - dayNames: ['Vasárnap', 'Hétfö', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
 14+ dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
1515 dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'],
1616 dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'],
17 - weekHeader: 'Hé',
18 - dateFormat: 'yy-mm-dd',
 17+ weekHeader: 'Hét',
 18+ dateFormat: 'yy.mm.dd.',
1919 firstDay: 1,
2020 isRTL: false,
2121 showMonthAfterYear: true,
Index: trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-uk.js
@@ -1,5 +1,6 @@
22 /* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */
33 /* Written by Maxim Drogobitskiy (maxdao@gmail.com). */
 4+/* Corrected by Igor Milla (igor.fsp.milla@gmail.com). */
45 jQuery(function($){
56 $.datepicker.regional['uk'] = {
67 closeText: 'Закрити',
@@ -13,7 +14,7 @@
1415 dayNames: ['неділя','понеділок','вівторок','середа','четвер','п’ятниця','субота'],
1516 dayNamesShort: ['нед','пнд','вів','срд','чтв','птн','сбт'],
1617 dayNamesMin: ['Нд','Пн','Вт','Ср','Чт','Пт','Сб'],
17 - weekHeader: 'Не',
 18+ weekHeader: 'Тиж',
1819 dateFormat: 'dd/mm/yy',
1920 firstDay: 1,
2021 isRTL: false,
Index: trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-lb.js
@@ -0,0 +1,23 @@
 2+/* Luxembourgish initialisation for the jQuery UI date picker plugin. */
 3+/* Written by Michel Weimerskirch <michel@weimerskirch.net> */
 4+jQuery(function($){
 5+ $.datepicker.regional['lb'] = {
 6+ closeText: 'Fäerdeg',
 7+ prevText: 'Zréck',
 8+ nextText: 'Weider',
 9+ currentText: 'Haut',
 10+ monthNames: ['Januar','Februar','Mäerz','Abrëll','Mee','Juni',
 11+ 'Juli','August','September','Oktober','November','Dezember'],
 12+ monthNamesShort: ['Jan', 'Feb', 'Mäe', 'Abr', 'Mee', 'Jun',
 13+ 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
 14+ dayNames: ['Sonndeg', 'Méindeg', 'Dënschdeg', 'Mëttwoch', 'Donneschdeg', 'Freideg', 'Samschdeg'],
 15+ dayNamesShort: ['Son', 'Méi', 'Dën', 'Mët', 'Don', 'Fre', 'Sam'],
 16+ dayNamesMin: ['So','Mé','Dë','Më','Do','Fr','Sa'],
 17+ weekHeader: 'W',
 18+ dateFormat: 'dd.mm.yy',
 19+ firstDay: 1,
 20+ isRTL: false,
 21+ showMonthAfterYear: false,
 22+ yearSuffix: ''};
 23+ $.datepicker.setDefaults($.datepicker.regional['lb']);
 24+});
Property changes on: trunk/phase3/resources/jquery.ui/i18n/jquery.ui.datepicker-lb.js
___________________________________________________________________
Added: svn:eol-style
125 + native
Index: trunk/phase3/resources/jquery.ui/jquery.ui.button.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Button 1.8.16
 3+ * jQuery UI Button 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -319,7 +319,7 @@
320320 return;
321321 }
322322 var buttonElement = this.buttonElement.removeClass( typeClasses ),
323 - buttonText = $( "<span></span>" )
 323+ buttonText = $( "<span></span>", this.element[0].ownerDocument )
324324 .addClass( "ui-button-text" )
325325 .html( this.options.label )
326326 .appendTo( buttonElement.empty() )
@@ -377,7 +377,7 @@
378378 },
379379
380380 refresh: function() {
381 - var ltr = this.element.css( "direction" ) === "ltr";
 381+ var rtl = this.element.css( "direction" ) === "rtl";
382382
383383 this.buttons = this.element.find( this.options.items )
384384 .filter( ":ui-button" )
@@ -391,10 +391,10 @@
392392 })
393393 .removeClass( "ui-corner-all ui-corner-left ui-corner-right" )
394394 .filter( ":first" )
395 - .addClass( ltr ? "ui-corner-left" : "ui-corner-right" )
 395+ .addClass( rtl ? "ui-corner-right" : "ui-corner-left" )
396396 .end()
397397 .filter( ":last" )
398 - .addClass( ltr ? "ui-corner-right" : "ui-corner-left" )
 398+ .addClass( rtl ? "ui-corner-left" : "ui-corner-right" )
399399 .end()
400400 .end();
401401 },
Index: trunk/phase3/resources/jquery.ui/jquery.ui.datepicker.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Datepicker 1.8.16
 3+ * jQuery UI Datepicker 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -12,7 +12,7 @@
1313 */
1414 (function( $, undefined ) {
1515
16 -$.extend($.ui, { datepicker: { version: "1.8.16" } });
 16+$.extend($.ui, { datepicker: { version: "1.8.17" } });
1717
1818 var PROP_NAME = 'datepicker';
1919 var dpuuid = new Date().getTime();
@@ -636,10 +636,10 @@
637637 return;
638638 var inst = $.datepicker._getInst(input);
639639 if ($.datepicker._curInst && $.datepicker._curInst != inst) {
640 - if ( $.datepicker._datepickerShowing ) {
641 - $.datepicker._triggerOnClose($.datepicker._curInst);
 640+ $.datepicker._curInst.dpDiv.stop(true, true);
 641+ if ( inst && $.datepicker._datepickerShowing ) {
 642+ $.datepicker._hideDatepicker( $.datepicker._curInst.input[0] );
642643 }
643 - $.datepicker._curInst.dpDiv.stop(true, true);
644644 }
645645 var beforeShow = $.datepicker._get(inst, 'beforeShow');
646646 var beforeShowSettings = beforeShow ? beforeShow.apply(input, [input, inst]) : {};
@@ -788,14 +788,6 @@
789789 return [position.left, position.top];
790790 },
791791
792 - /* Trigger custom callback of onClose. */
793 - _triggerOnClose: function(inst) {
794 - var onClose = this._get(inst, 'onClose');
795 - if (onClose)
796 - onClose.apply((inst.input ? inst.input[0] : null),
797 - [(inst.input ? inst.input.val() : ''), inst]);
798 - },
799 -
800792 /* Hide the date picker from view.
801793 @param input element - the input field attached to the date picker */
802794 _hideDatepicker: function(input) {
@@ -805,9 +797,10 @@
806798 if (this._datepickerShowing) {
807799 var showAnim = this._get(inst, 'showAnim');
808800 var duration = this._get(inst, 'duration');
 801+ var self = this;
809802 var postProcess = function() {
810803 $.datepicker._tidyDialog(inst);
811 - this._curInst = null;
 804+ self._curInst = null;
812805 };
813806 if ($.effects && $.effects[showAnim])
814807 inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
@@ -816,8 +809,11 @@
817810 (showAnim == 'fadeIn' ? 'fadeOut' : 'hide'))]((showAnim ? duration : null), postProcess);
818811 if (!showAnim)
819812 postProcess();
820 - $.datepicker._triggerOnClose(inst);
821813 this._datepickerShowing = false;
 814+ var onClose = this._get(inst, 'onClose');
 815+ if (onClose)
 816+ onClose.apply((inst.input ? inst.input[0] : null),
 817+ [(inst.input ? inst.input.val() : ''), inst]);
822818 this._lastInput = null;
823819 if (this._inDialog) {
824820 this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' });
@@ -839,12 +835,16 @@
840836 _checkExternalClick: function(event) {
841837 if (!$.datepicker._curInst)
842838 return;
843 - var $target = $(event.target);
844 - if ($target[0].id != $.datepicker._mainDivId &&
 839+
 840+ var $target = $(event.target),
 841+ inst = $.datepicker._getInst($target[0]);
 842+
 843+ if ( ( ( $target[0].id != $.datepicker._mainDivId &&
845844 $target.parents('#' + $.datepicker._mainDivId).length == 0 &&
846845 !$target.hasClass($.datepicker.markerClassName) &&
847846 !$target.hasClass($.datepicker._triggerClass) &&
848 - $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI))
 847+ $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
 848+ ( $target.hasClass($.datepicker.markerClassName) && $.datepicker._curInst != inst ) )
849849 $.datepicker._hideDatepicker();
850850 },
851851
@@ -1814,7 +1814,7 @@
18151815 $.datepicker = new Datepicker(); // singleton instance
18161816 $.datepicker.initialized = false;
18171817 $.datepicker.uuid = new Date().getTime();
1818 -$.datepicker.version = "1.8.16";
 1818+$.datepicker.version = "1.8.17";
18191819
18201820 // Workaround for #4055
18211821 // Add another global to avoid noConflict issues with inline event handlers
Index: trunk/phase3/resources/jquery.ui/jquery.ui.sortable.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Sortable 1.8.16
 3+ * jQuery UI Sortable 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -62,13 +62,11 @@
6363
6464 destroy: function() {
6565 this.element
66 - .removeClass("ui-sortable ui-sortable-disabled")
67 - .removeData("sortable")
68 - .unbind(".sortable");
 66+ .removeClass("ui-sortable ui-sortable-disabled");
6967 this._mouseDestroy();
7068
7169 for ( var i = this.items.length - 1; i >= 0; i-- )
72 - this.items[i].item.removeData("sortable-item");
 70+ this.items[i].item.removeData(this.widgetName + "-item");
7371
7472 return this;
7573 },
@@ -86,6 +84,7 @@
8785 },
8886
8987 _mouseCapture: function(event, overrideHandle) {
 88+ var that = this;
9089
9190 if (this.reverting) {
9291 return false;
@@ -98,12 +97,12 @@
9998
10099 //Find out if the clicked node (or one of its parents) is a actual item in this.items
101100 var currentItem = null, self = this, nodes = $(event.target).parents().each(function() {
102 - if($.data(this, 'sortable-item') == self) {
 101+ if($.data(this, that.widgetName + '-item') == self) {
103102 currentItem = $(this);
104103 return false;
105104 }
106105 });
107 - if($.data(event.target, 'sortable-item') == self) currentItem = $(event.target);
 106+ if($.data(event.target, that.widgetName + '-item') == self) currentItem = $(event.target);
108107
109108 if(!currentItem) return false;
110109 if(this.options.handle && !overrideHandle) {
@@ -528,7 +527,7 @@
529528 for (var i = connectWith.length - 1; i >= 0; i--){
530529 var cur = $(connectWith[i]);
531530 for (var j = cur.length - 1; j >= 0; j--){
532 - var inst = $.data(cur[j], 'sortable');
 531+ var inst = $.data(cur[j], this.widgetName);
533532 if(inst && inst != this && !inst.options.disabled) {
534533 queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element).not(".ui-sortable-helper").not('.ui-sortable-placeholder'), inst]);
535534 }
@@ -550,7 +549,7 @@
551550
552551 _removeCurrentsFromItems: function() {
553552
554 - var list = this.currentItem.find(":data(sortable-item)");
 553+ var list = this.currentItem.find(":data(" + this.widgetName + "-item)");
555554
556555 for (var i=0; i < this.items.length; i++) {
557556
@@ -576,7 +575,7 @@
577576 for (var i = connectWith.length - 1; i >= 0; i--){
578577 var cur = $(connectWith[i]);
579578 for (var j = cur.length - 1; j >= 0; j--){
580 - var inst = $.data(cur[j], 'sortable');
 579+ var inst = $.data(cur[j], this.widgetName);
581580 if(inst && inst != this && !inst.options.disabled) {
582581 queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element[0], event, { item: this.currentItem }) : $(inst.options.items, inst.element), inst]);
583582 this.containers.push(inst);
@@ -592,7 +591,7 @@
593592 for (var j=0, queriesLength = _queries.length; j < queriesLength; j++) {
594593 var item = $(_queries[j]);
595594
596 - item.data('sortable-item', targetData); // Data for target checking (mouse manager)
 595+ item.data(this.widgetName + '-item', targetData); // Data for target checking (mouse manager)
597596
598597 items.push({
599598 item: item,
@@ -1071,7 +1070,7 @@
10721071 });
10731072
10741073 $.extend($.ui.sortable, {
1075 - version: "1.8.16"
 1074+ version: "1.8.17"
10761075 });
10771076
10781077 })(jQuery);
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.dialog.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Dialog 1.8.16
 3+ * jQuery UI Dialog 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.resizable.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Resizable 1.8.16
 3+ * jQuery UI Resizable 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.accordion.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Accordion 1.8.16
 3+ * jQuery UI Accordion 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.autocomplete.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Autocomplete 1.8.16
 3+ * jQuery UI Autocomplete 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -13,7 +13,7 @@
1414 * html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
1515
1616 /*
17 - * jQuery UI Menu 1.8.16
 17+ * jQuery UI Menu 1.8.17
1818 *
1919 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
2020 * Dual licensed under the MIT or GPL Version 2 licenses.
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.slider.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Slider 1.8.16
 3+ * jQuery UI Slider 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.theme.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI CSS Framework 1.8.16
 3+ * jQuery UI CSS Framework 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.selectable.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Selectable 1.8.16
 3+ * jQuery UI Selectable 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.core.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI CSS Framework 1.8.16
 3+ * jQuery UI CSS Framework 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -13,12 +13,9 @@
1414 .ui-helper-hidden { display: none; }
1515 .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
1616 .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
17 -.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
18 -.ui-helper-clearfix { display: inline-block; }
19 -/* required comment for clearfix to work in Opera \*/
20 -* html .ui-helper-clearfix { height:1%; }
21 -.ui-helper-clearfix { display:block; }
22 -/* end clearfix */
 17+.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
 18+.ui-helper-clearfix:after { clear: both; }
 19+.ui-helper-clearfix { zoom: 1; }
2320 .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
2421
2522
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.progressbar.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Progressbar 1.8.16
 3+ * jQuery UI Progressbar 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -7,5 +7,5 @@
88 *
99 * http://docs.jquery.com/UI/Progressbar#theming
1010 */
11 -.ui-progressbar { height:2em; text-align: left; }
 11+.ui-progressbar { height:2em; text-align: left; overflow: hidden; }
1212 .ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
\ No newline at end of file
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.tabs.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Tabs 1.8.16
 3+ * jQuery UI Tabs 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.button.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Button 1.8.16
 3+ * jQuery UI Button 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
Index: trunk/phase3/resources/jquery.ui/themes/default/jquery.ui.datepicker.css
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Datepicker 1.8.16
 3+ * jQuery UI Datepicker 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
Index: trunk/phase3/resources/jquery.ui/jquery.ui.resizable.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Resizable 1.8.16
 3+ * jQuery UI Resizable 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -549,7 +549,7 @@
550550 });
551551
552552 $.extend($.ui.resizable, {
553 - version: "1.8.16"
 553+ version: "1.8.17"
554554 });
555555
556556 /*
Index: trunk/phase3/resources/jquery.ui/jquery.ui.slider.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Slider 1.8.16
 3+ * jQuery UI Slider 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -660,7 +660,7 @@
661661 });
662662
663663 $.extend( $.ui.slider, {
664 - version: "1.8.16"
 664+ version: "1.8.17"
665665 });
666666
667667 }(jQuery));
Index: trunk/phase3/resources/jquery.ui/jquery.ui.widget.js
@@ -1,5 +1,5 @@
22 /*!
3 - * jQuery UI Widget 1.8.16
 3+ * jQuery UI Widget 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -239,21 +239,25 @@
240240 },
241241
242242 _trigger: function( type, event, data ) {
243 - var callback = this.options[ type ];
 243+ var prop, orig,
 244+ callback = this.options[ type ];
244245
 246+ data = data || {};
245247 event = $.Event( event );
246248 event.type = ( type === this.widgetEventPrefix ?
247249 type :
248250 this.widgetEventPrefix + type ).toLowerCase();
249 - data = data || {};
 251+ // the original event may come from any element
 252+ // so we need to reset the target on the new event
 253+ event.target = this.element[ 0 ];
250254
251255 // copy original event properties over to the new event
252 - // this would happen if we could call $.event.fix instead of $.Event
253 - // but we don't have a way to force an event to be fixed multiple times
254 - if ( event.originalEvent ) {
255 - for ( var i = $.event.props.length, prop; i; ) {
256 - prop = $.event.props[ --i ];
257 - event[ prop ] = event.originalEvent[ prop ];
 256+ orig = event.originalEvent;
 257+ if ( orig ) {
 258+ for ( prop in orig ) {
 259+ if ( !( prop in event ) ) {
 260+ event[ prop ] = orig[ prop ];
 261+ }
258262 }
259263 }
260264
Index: trunk/phase3/resources/jquery.ui/jquery.ui.core.js
@@ -1,5 +1,5 @@
22 /*!
3 - * jQuery UI 1.8.16
 3+ * jQuery UI 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -18,7 +18,7 @@
1919 }
2020
2121 $.extend( $.ui, {
22 - version: "1.8.16",
 22+ version: "1.8.17",
2323
2424 keyCode: {
2525 ALT: 18,
Index: trunk/phase3/resources/jquery.ui/jquery.ui.mouse.js
@@ -1,5 +1,5 @@
22 /*!
3 - * jQuery UI Mouse 1.8.16
 3+ * jQuery UI Mouse 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
Index: trunk/phase3/resources/jquery.ui/jquery.ui.tabs.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Tabs 1.8.16
 3+ * jQuery UI Tabs 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -698,7 +698,7 @@
699699 });
700700
701701 $.extend( $.ui.tabs, {
702 - version: "1.8.16"
 702+ version: "1.8.17"
703703 });
704704
705705 /*
Index: trunk/phase3/resources/jquery.ui/jquery.ui.progressbar.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Progressbar 1.8.16
 3+ * jQuery UI Progressbar 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -103,7 +103,7 @@
104104 });
105105
106106 $.extend( $.ui.progressbar, {
107 - version: "1.8.16"
 107+ version: "1.8.17"
108108 });
109109
110110 })( jQuery );
Index: trunk/phase3/resources/jquery.ui/jquery.ui.dialog.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Dialog 1.8.16
 3+ * jQuery UI Dialog 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -329,9 +329,9 @@
330330 self.moveToTop(true);
331331
332332 // prevent tabbing out of modal dialogs
333 - if (options.modal) {
334 - uiDialog.bind('keypress.ui-dialog', function(event) {
335 - if (event.keyCode !== $.ui.keyCode.TAB) {
 333+ if ( options.modal ) {
 334+ uiDialog.bind( "keydown.ui-dialog", function( event ) {
 335+ if ( event.keyCode !== $.ui.keyCode.TAB ) {
336336 return;
337337 }
338338
@@ -702,7 +702,7 @@
703703 });
704704
705705 $.extend($.ui.dialog, {
706 - version: "1.8.16",
 706+ version: "1.8.17",
707707
708708 uuid: 0,
709709 maxZ: 0,
Index: trunk/phase3/resources/jquery.ui/jquery.ui.accordion.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Accordion 1.8.16
 3+ * jQuery UI Accordion 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -518,7 +518,7 @@
519519 });
520520
521521 $.extend( $.ui.accordion, {
522 - version: "1.8.16",
 522+ version: "1.8.17",
523523 animations: {
524524 slide: function( options, additions ) {
525525 options = $.extend({
@@ -550,11 +550,11 @@
551551 // fix width before calculating height of hidden element
552552 var s = options.toShow;
553553 originalWidth = s[0].style.width;
554 - s.width( parseInt( s.parent().width(), 10 )
555 - - parseInt( s.css( "paddingLeft" ), 10 )
556 - - parseInt( s.css( "paddingRight" ), 10 )
557 - - ( parseInt( s.css( "borderLeftWidth" ), 10 ) || 0 )
558 - - ( parseInt( s.css( "borderRightWidth" ), 10) || 0 ) );
 554+ s.width( s.parent().width()
 555+ - parseFloat( s.css( "paddingLeft" ) )
 556+ - parseFloat( s.css( "paddingRight" ) )
 557+ - ( parseFloat( s.css( "borderLeftWidth" ) ) || 0 )
 558+ - ( parseFloat( s.css( "borderRightWidth" ) ) || 0 ) );
559559
560560 $.each( fxAttrs, function( i, prop ) {
561561 hideProps[ prop ] = "hide";
Index: trunk/phase3/resources/jquery.ui/jquery.ui.autocomplete.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Autocomplete 1.8.16
 3+ * jQuery UI Autocomplete 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -215,6 +215,13 @@
216216 if ( $.fn.bgiframe ) {
217217 this.menu.element.bgiframe();
218218 }
 219+ // turning off autocomplete prevents the browser from remembering the
 220+ // value when navigating through history, so we re-enable autocomplete
 221+ // if the page is unloaded before the widget is destroyed. #7790
 222+ self.beforeunloadHandler = function() {
 223+ self.element.removeAttr( "autocomplete" );
 224+ };
 225+ $( window ).bind( "beforeunload", self.beforeunloadHandler );
219226 },
220227
221228 destroy: function() {
@@ -225,6 +232,7 @@
226233 .removeAttr( "aria-autocomplete" )
227234 .removeAttr( "aria-haspopup" );
228235 this.menu.element.remove();
 236+ $( window ).unbind( "beforeunload", this.beforeunloadHandler );
229237 $.Widget.prototype.destroy.call( this );
230238 },
231239
@@ -375,7 +383,9 @@
376384 _resizeMenu: function() {
377385 var ul = this.menu.element;
378386 ul.outerWidth( Math.max(
379 - ul.width( "" ).outerWidth(),
 387+ // Firefox wraps long text (possibly a rounding bug)
 388+ // so we add 1px to avoid the wrapping (#7513)
 389+ ul.width( "" ).outerWidth() + 1,
380390 this.element.outerWidth()
381391 ) );
382392 },
Index: trunk/phase3/resources/jquery.ui/jquery.ui.selectable.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Selectable 1.8.16
 3+ * jQuery UI Selectable 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -33,6 +33,7 @@
3434 var selectees;
3535 this.refresh = function() {
3636 selectees = $(self.options.filter, self.element[0]);
 37+ selectees.addClass("ui-selectee");
3738 selectees.each(function() {
3839 var $this = $(this);
3940 var pos = $this.offset();
@@ -102,7 +103,7 @@
103104 this.selectees.filter('.ui-selected').each(function() {
104105 var selectee = $.data(this, "selectable-item");
105106 selectee.startselected = true;
106 - if (!event.metaKey) {
 107+ if (!event.metaKey && !event.ctrlKey) {
107108 selectee.$element.removeClass('ui-selected');
108109 selectee.selected = false;
109110 selectee.$element.addClass('ui-unselecting');
@@ -117,7 +118,7 @@
118119 $(event.target).parents().andSelf().each(function() {
119120 var selectee = $.data(this, "selectable-item");
120121 if (selectee) {
121 - var doSelect = !event.metaKey || !selectee.$element.hasClass('ui-selected');
 122+ var doSelect = (!event.metaKey && !event.ctrlKey) || !selectee.$element.hasClass('ui-selected');
122123 selectee.$element
123124 .removeClass(doSelect ? "ui-unselecting" : "ui-selected")
124125 .addClass(doSelect ? "ui-selecting" : "ui-unselecting");
@@ -187,7 +188,7 @@
188189 } else {
189190 // UNSELECT
190191 if (selectee.selecting) {
191 - if (event.metaKey && selectee.startselected) {
 192+ if ((event.metaKey || event.ctrlKey) && selectee.startselected) {
192193 selectee.$element.removeClass('ui-selecting');
193194 selectee.selecting = false;
194195 selectee.$element.addClass('ui-selected');
@@ -206,7 +207,7 @@
207208 }
208209 }
209210 if (selectee.selected) {
210 - if (!event.metaKey && !selectee.startselected) {
 211+ if (!event.metaKey && !event.ctrlKey && !selectee.startselected) {
211212 selectee.$element.removeClass('ui-selected');
212213 selectee.selected = false;
213214
@@ -260,7 +261,7 @@
261262 });
262263
263264 $.extend($.ui.selectable, {
264 - version: "1.8.16"
 265+ version: "1.8.17"
265266 });
266267
267268 })(jQuery);
Index: trunk/phase3/resources/jquery.ui/jquery.ui.position.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Position 1.8.16
 3+ * jQuery UI Position 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -14,6 +14,7 @@
1515 var horizontalPositions = /left|center|right/,
1616 verticalPositions = /top|center|bottom/,
1717 center = "center",
 18+ support = {},
1819 _position = $.fn.position,
1920 _offset = $.fn.offset;
2021
@@ -121,9 +122,11 @@
122123 position.top -= elemHeight / 2;
123124 }
124125
125 - // prevent fractions (see #5280)
126 - position.left = Math.round( position.left );
127 - position.top = Math.round( position.top );
 126+ // prevent fractions if jQuery version doesn't support them (see #5280)
 127+ if ( !support.fractions ) {
 128+ position.left = Math.round( position.left );
 129+ position.top = Math.round( position.top );
 130+ }
128131
129132 collisionPosition = {
130133 left: position.left - marginLeft,
@@ -249,4 +252,47 @@
250253 };
251254 }
252255
 256+// fraction support test (older versions of jQuery don't support fractions)
 257+(function () {
 258+ var body = document.getElementsByTagName( "body" )[ 0 ],
 259+ div = document.createElement( "div" ),
 260+ testElement, testElementParent, testElementStyle, offset, offsetTotal;
 261+
 262+ //Create a "fake body" for testing based on method used in jQuery.support
 263+ testElement = document.createElement( body ? "div" : "body" );
 264+ testElementStyle = {
 265+ visibility: "hidden",
 266+ width: 0,
 267+ height: 0,
 268+ border: 0,
 269+ margin: 0,
 270+ background: "none"
 271+ };
 272+ if ( body ) {
 273+ jQuery.extend( testElementStyle, {
 274+ position: "absolute",
 275+ left: "-1000px",
 276+ top: "-1000px"
 277+ });
 278+ }
 279+ for ( var i in testElementStyle ) {
 280+ testElement.style[ i ] = testElementStyle[ i ];
 281+ }
 282+ testElement.appendChild( div );
 283+ testElementParent = body || document.documentElement;
 284+ testElementParent.insertBefore( testElement, testElementParent.firstChild );
 285+
 286+ div.style.cssText = "position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;";
 287+
 288+ offset = $( div ).offset( function( _, offset ) {
 289+ return offset;
 290+ }).offset();
 291+
 292+ testElement.innerHTML = "";
 293+ testElementParent.removeChild( testElement );
 294+
 295+ offsetTotal = offset.top + offset.left + ( body ? 2000 : 0 );
 296+ support.fractions = offsetTotal > 21 && offsetTotal < 22;
 297+})();
 298+
253299 }( jQuery ));
Index: trunk/phase3/resources/jquery.ui/jquery.ui.droppable.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Droppable 1.8.16
 3+ * jQuery UI Droppable 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -147,7 +147,7 @@
148148 });
149149
150150 $.extend($.ui.droppable, {
151 - version: "1.8.16"
 151+ version: "1.8.17"
152152 });
153153
154154 $.ui.intersect = function(draggable, droppable, toleranceMode) {
@@ -227,7 +227,7 @@
228228
229229 if(!this.options) return;
230230 if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance))
231 - dropped = dropped || this._drop.call(this, event);
 231+ dropped = this._drop.call(this, event) || dropped;
232232
233233 if (!this.options.disabled && this.visible && this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {
234234 this.isout = 1; this.isover = 0;
Index: trunk/phase3/resources/jquery.ui/jquery.ui.draggable.js
@@ -1,5 +1,5 @@
22 /*
3 - * jQuery UI Draggable 1.8.16
 3+ * jQuery UI Draggable 1.8.17
44 *
55 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
66 * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -505,7 +505,7 @@
506506 });
507507
508508 $.extend($.ui.draggable, {
509 - version: "1.8.16"
 509+ version: "1.8.17"
510510 });
511511
512512 $.ui.plugin.add("draggable", "connectToSortable", {

Follow-up revisions

RevisionCommit summaryAuthorDate
r105672Followup r105575, r105619, r105671 Add RELEASE-NOTES-1.19reedy14:48, 9 December 2011

Comments

#Comment by Nikerabbit (talk | contribs)   07:16, 9 December 2011

Release notes?

Status & tagging log