Changeset 52665 for branches/5.9
- Timestamp:
- 02/03/2022 12:02:28 AM (3 years ago)
- Location:
- branches/5.9
- Files:
-
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
-
branches/5.9/src/js/_enqueues/vendor/jquery/ui/accordion.js
r51897 r52665 1 1 /*! 2 * jQuery UI Accordion 1.13. 02 * jQuery UI Accordion 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 38 38 39 39 return $.widget( "ui.accordion", { 40 version: "1.13. 0",40 version: "1.13.1", 41 41 options: { 42 42 active: 0, … … 205 205 206 206 switch ( event.keyCode ) { 207 case keyCode.RIGHT:208 case keyCode.DOWN:209 toFocus = this.headers[ ( currentIndex + 1 ) % length ];210 break;211 case keyCode.LEFT:212 case keyCode.UP:213 toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];214 break;215 case keyCode.SPACE:216 case keyCode.ENTER:217 this._eventHandler( event );218 break;219 case keyCode.HOME:220 toFocus = this.headers[ 0 ];221 break;222 case keyCode.END:223 toFocus = this.headers[ length - 1 ];224 break;207 case keyCode.RIGHT: 208 case keyCode.DOWN: 209 toFocus = this.headers[ ( currentIndex + 1 ) % length ]; 210 break; 211 case keyCode.LEFT: 212 case keyCode.UP: 213 toFocus = this.headers[ ( currentIndex - 1 + length ) % length ]; 214 break; 215 case keyCode.SPACE: 216 case keyCode.ENTER: 217 this._eventHandler( event ); 218 break; 219 case keyCode.HOME: 220 toFocus = this.headers[ 0 ]; 221 break; 222 case keyCode.END: 223 toFocus = this.headers[ length - 1 ]; 224 break; 225 225 } 226 226 … … 245 245 // Was collapsed or no panel 246 246 if ( ( options.active === false && options.collapsible === true ) || 247 247 !this.headers.length ) { 248 248 options.active = false; 249 249 this.active = $(); 250 250 251 // active false only when collapsible is true251 // active false only when collapsible is true 252 252 } else if ( options.active === false ) { 253 253 this._activate( 0 ); 254 254 255 // was active, but active panel is gone255 // was active, but active panel is gone 256 256 } else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) { 257 257 … … 261 261 this.active = $(); 262 262 263 // activate previous panel263 // activate previous panel 264 264 } else { 265 265 this._activate( Math.max( 0, options.active - 1 ) ); 266 266 } 267 267 268 // was active, active panel still exists268 // was active, active panel still exists 269 269 } else { 270 270 … … 323 323 } ) 324 324 .next() 325 325 .attr( "role", "tabpanel" ); 326 326 327 327 this.headers 328 328 .not( this.active ) 329 330 331 332 333 334 335 336 337 338 329 .attr( { 330 "aria-selected": "false", 331 "aria-expanded": "false", 332 tabIndex: -1 333 } ) 334 .next() 335 .attr( { 336 "aria-hidden": "true" 337 } ) 338 .hide(); 339 339 340 340 // Make sure at least one header is in the tab order … … 348 348 } ) 349 349 .next() 350 351 352 350 .attr( { 351 "aria-hidden": "false" 352 } ); 353 353 } 354 354 … … 455 455 if ( 456 456 457 458 459 460 461 457 // click on active header, but not collapsible 458 ( clickedIsActive && !options.collapsible ) || 459 460 // allow canceling activation 461 ( this._trigger( "beforeActivate", event, eventData ) === false ) ) { 462 462 return; 463 463 } … … 535 535 .attr( "aria-hidden", "false" ) 536 536 .prev() 537 538 539 540 541 537 .attr( { 538 "aria-selected": "true", 539 "aria-expanded": "true", 540 tabIndex: 0 541 } ); 542 542 }, 543 543 -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/autocomplete.js
r51897 r52665 1 1 /*! 2 * jQuery UI Autocomplete 1.13. 02 * jQuery UI Autocomplete 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 37 37 38 38 $.widget( "ui.autocomplete", { 39 version: "1.13. 0",39 version: "1.13.1", 40 40 defaultElement: "<input>", 41 41 options: { … … 63 63 requestIndex: 0, 64 64 pending: 0, 65 liveRegionTimer: null, 65 66 66 67 _create: function() { … … 104 105 var keyCode = $.ui.keyCode; 105 106 switch ( event.keyCode ) { 106 case keyCode.PAGE_UP: 107 suppressKeyPress = true; 108 this._move( "previousPage", event ); 109 break; 110 case keyCode.PAGE_DOWN: 111 suppressKeyPress = true; 112 this._move( "nextPage", event ); 113 break; 114 case keyCode.UP: 115 suppressKeyPress = true; 116 this._keyEvent( "previous", event ); 117 break; 118 case keyCode.DOWN: 119 suppressKeyPress = true; 120 this._keyEvent( "next", event ); 121 break; 122 case keyCode.ENTER: 123 124 // when menu is open and has focus 125 if ( this.menu.active ) { 126 127 // #6055 - Opera still allows the keypress to occur 128 // which causes forms to submit 107 case keyCode.PAGE_UP: 129 108 suppressKeyPress = true; 130 event.preventDefault(); 131 this.menu.select( event ); 132 } 133 break; 134 case keyCode.TAB: 135 if ( this.menu.active ) { 136 this.menu.select( event ); 137 } 138 break; 139 case keyCode.ESCAPE: 140 if ( this.menu.element.is( ":visible" ) ) { 141 if ( !this.isMultiLine ) { 142 this._value( this.term ); 109 this._move( "previousPage", event ); 110 break; 111 case keyCode.PAGE_DOWN: 112 suppressKeyPress = true; 113 this._move( "nextPage", event ); 114 break; 115 case keyCode.UP: 116 suppressKeyPress = true; 117 this._keyEvent( "previous", event ); 118 break; 119 case keyCode.DOWN: 120 suppressKeyPress = true; 121 this._keyEvent( "next", event ); 122 break; 123 case keyCode.ENTER: 124 125 // when menu is open and has focus 126 if ( this.menu.active ) { 127 128 // #6055 - Opera still allows the keypress to occur 129 // which causes forms to submit 130 suppressKeyPress = true; 131 event.preventDefault(); 132 this.menu.select( event ); 143 133 } 144 this.close( event ); 145 146 // Different browsers have different default behavior for escape 147 // Single press can mean undo or clear 148 // Double press in IE means clear the whole form 149 event.preventDefault(); 150 } 151 break; 152 default: 153 suppressKeyPressRepeat = true; 154 155 // search timeout should be triggered before the input value is changed 156 this._searchTimeout( event ); 157 break; 134 break; 135 case keyCode.TAB: 136 if ( this.menu.active ) { 137 this.menu.select( event ); 138 } 139 break; 140 case keyCode.ESCAPE: 141 if ( this.menu.element.is( ":visible" ) ) { 142 if ( !this.isMultiLine ) { 143 this._value( this.term ); 144 } 145 this.close( event ); 146 147 // Different browsers have different default behavior for escape 148 // Single press can mean undo or clear 149 // Double press in IE means clear the whole form 150 event.preventDefault(); 151 } 152 break; 153 default: 154 suppressKeyPressRepeat = true; 155 156 // search timeout should be triggered before the input value is changed 157 this._searchTimeout( event ); 158 break; 158 159 } 159 160 }, … … 173 174 var keyCode = $.ui.keyCode; 174 175 switch ( event.keyCode ) { 175 case keyCode.PAGE_UP:176 this._move( "previousPage", event );177 break;178 case keyCode.PAGE_DOWN:179 this._move( "nextPage", event );180 break;181 case keyCode.UP:182 this._keyEvent( "previous", event );183 break;184 case keyCode.DOWN:185 this._keyEvent( "next", event );186 break;176 case keyCode.PAGE_UP: 177 this._move( "previousPage", event ); 178 break; 179 case keyCode.PAGE_DOWN: 180 this._move( "nextPage", event ); 181 break; 182 case keyCode.UP: 183 this._keyEvent( "previous", event ); 184 break; 185 case keyCode.DOWN: 186 this._keyEvent( "next", event ); 187 break; 187 188 } 188 189 }, … … 264 265 label = ui.item.attr( "aria-label" ) || item.value; 265 266 if ( label && String.prototype.trim.call( label ).length ) { 266 this.liveRegion.children().hide(); 267 $( "<div>" ).text( label ).appendTo( this.liveRegion ); 267 clearTimeout( this.liveRegionTimer ); 268 this.liveRegionTimer = this._delay( function() { 269 this.liveRegion.html( $( "<div>" ).text( label ) ); 270 }, 100 ); 268 271 } 269 272 }, … … 575 578 } 576 579 if ( this.menu.isFirstItem() && /^previous/.test( direction ) || 577 580 this.menu.isLastItem() && /^next/.test( direction ) ) { 578 581 579 582 if ( !this.isMultiLine ) { … … 660 663 message = this.options.messages.noResults; 661 664 } 662 this.liveRegion.children().hide(); 663 $( "<div>" ).text( message ).appendTo( this.liveRegion ); 665 clearTimeout( this.liveRegionTimer ); 666 this.liveRegionTimer = this._delay( function() { 667 this.liveRegion.html( $( "<div>" ).text( message ) ); 668 }, 100 ); 664 669 } 665 670 } ); -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/button.js
r51897 r52665 1 1 /*! 2 * jQuery UI Button 1.13. 02 * jQuery UI Button 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 42 42 43 43 $.widget( "ui.button", { 44 version: "1.13. 0",44 version: "1.13.1", 45 45 defaultElement: "<button>", 46 46 options: { … … 241 241 // Make sure we can't end up with a button that has neither text nor icon 242 242 if ( key === "showLabel" ) { 243 244 243 this._toggleClass( "ui-button-icon-only", null, !value ); 244 this._updateTooltip(); 245 245 } 246 246 … … 307 307 } 308 308 if ( !this.options.icon && ( this.options.icons.primary || 309 309 this.options.icons.secondary ) ) { 310 310 if ( this.options.icons.primary ) { 311 311 this.options.icon = this.options.icons.primary; -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/checkboxradio.js
r51897 r52665 1 1 /*! 2 * jQuery UI Checkboxradio 1.13. 02 * jQuery UI Checkboxradio 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 37 37 38 38 $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { 39 version: "1.13. 0",39 version: "1.13.1", 40 40 options: { 41 41 disabled: null, -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/controlgroup.js
r51897 r52665 1 1 /*! 2 * jQuery UI Controlgroup 1.13. 02 * jQuery UI Controlgroup 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 38 38 39 39 return $.widget( "ui.controlgroup", { 40 version: "1.13. 0",40 version: "1.13.1", 41 41 defaultElement: "<div>", 42 42 options: { -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/core.js
r51897 r52665 1 /*! jQuery UI - v1.13. 0 - 2021-10-071 /*! jQuery UI - v1.13.1 - 2022-01-20 2 2 * http://jqueryui.com 3 3 * Includes: data.js, disable-selection.js, escape-selector.js, focusable.js, form-reset-mixin.js, form.js, ie.js, jquery-1-7.js, keycode.js, labels.js, plugin.js, position.js, safe-active-element.js, safe-blur.js, scroll-parent.js, tabbable.js, unique-id.js, version.js, widget.js … … 21 21 $.ui = $.ui || {}; 22 22 23 $.ui.version = "1.13. 0";23 $.ui.version = "1.13.1"; 24 24 25 25 // Source: data.js 26 26 /*! 27 * jQuery UI :data 1.13. 027 * jQuery UI :data 1.13.1 28 28 * http://jqueryui.com 29 29 * … … 54 54 // Source: disable-selection.js 55 55 /*! 56 * jQuery UI Disable Selection 1.13. 056 * jQuery UI Disable Selection 1.13.1 57 57 * http://jqueryui.com 58 58 * … … 88 88 // Source: focusable.js 89 89 /*! 90 * jQuery UI Focusable 1.13. 090 * jQuery UI Focusable 1.13.1 91 91 * http://jqueryui.com 92 92 * … … 156 156 } ); 157 157 158 // Source: form.js159 158 // Support: IE8 Only 160 159 // IE8 does not support the form attribute and when it is supplied. It overwrites the form prop … … 166 165 // Source: form-reset-mixin.js 167 166 /*! 168 * jQuery UI Form Reset Mixin 1.13. 0167 * jQuery UI Form Reset Mixin 1.13.1 169 168 * http://jqueryui.com 170 169 * … … 305 304 // Source: keycode.js 306 305 /*! 307 * jQuery UI Keycode 1.13. 0306 * jQuery UI Keycode 1.13.1 308 307 * http://jqueryui.com 309 308 * … … 339 338 // Source: labels.js 340 339 /*! 341 * jQuery UI Labels 1.13. 0340 * jQuery UI Labels 1.13.1 342 341 * http://jqueryui.com 343 342 * … … 411 410 412 411 if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || 413 412 instance.element[ 0 ].parentNode.nodeType === 11 ) ) { 414 413 return; 415 414 } … … 425 424 // Source: position.js 426 425 /*! 427 * jQuery UI Position 1.13. 0426 * jQuery UI Position 1.13.1 428 427 * http://jqueryui.com 429 428 * … … 958 957 // Source: scroll-parent.js 959 958 /*! 960 * jQuery UI Scroll Parent 1.13. 0959 * jQuery UI Scroll Parent 1.13.1 961 960 * http://jqueryui.com 962 961 * … … 991 990 // Source: tabbable.js 992 991 /*! 993 * jQuery UI Tabbable 1.13. 0992 * jQuery UI Tabbable 1.13.1 994 993 * http://jqueryui.com 995 994 * … … 1014 1013 // Source: unique-id.js 1015 1014 /*! 1016 * jQuery UI Unique ID 1.13. 01015 * jQuery UI Unique ID 1.13.1 1017 1016 * http://jqueryui.com 1018 1017 * … … 1051 1050 // Source: widget.js 1052 1051 /*! 1053 * jQuery UI Widget 1.13. 01052 * jQuery UI Widget 1.13.1 1054 1053 * http://jqueryui.com 1055 1054 * … … 1114 1113 1115 1114 // Allow instantiation without "new" keyword 1116 if ( !this ._createWidget ) {1115 if ( !this || !this._createWidget ) { 1117 1116 return new constructor( options, element ); 1118 1117 } … … 1234 1233 $.widget.extend( {}, value ); 1235 1234 1236 // Copy everything else by reference1235 // Copy everything else by reference 1237 1236 } else { 1238 1237 target[ key ] = value; … … 1483 1482 currentElements = this.classesElementLookup[ classKey ]; 1484 1483 if ( value[ classKey ] === this.options.classes[ classKey ] || 1485 1486 1484 !currentElements || 1485 !currentElements.length ) { 1487 1486 continue; 1488 1487 } … … 1536 1535 1537 1536 function bindRemoveEvent() { 1537 var nodesToBind = []; 1538 1538 1539 options.element.each( function( _, element ) { 1539 1540 var isTracked = $.map( that.classesElementLookup, function( elements ) { … … 1545 1546 1546 1547 if ( !isTracked ) { 1547 that._on( $( element ), { 1548 remove: "_untrackClassesElement" 1549 } ); 1550 } 1548 nodesToBind.push( element ); 1549 } 1550 } ); 1551 1552 that._on( $( nodesToBind ), { 1553 remove: "_untrackClassesElement" 1551 1554 } ); 1552 1555 } … … 1640 1643 // - disabled class as method for disabling individual parts 1641 1644 if ( !suppressDisabledCheck && 1642 1645 ( instance.options.disabled === true || 1643 1646 $( this ).hasClass( "ui-state-disabled" ) ) ) { 1644 1647 return; -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/datepicker.js
r51897 r52665 1 1 /* eslint-disable max-len, camelcase */ 2 2 /*! 3 * jQuery UI Datepicker 1.13. 03 * jQuery UI Datepicker 1.13.1 4 4 * http://jqueryui.com 5 5 * … … 36 36 "use strict"; 37 37 38 $.extend( $.ui, { datepicker: { version: "1.13. 0" } } );38 $.extend( $.ui, { datepicker: { version: "1.13.1" } } ); 39 39 40 40 var datepicker_instActive; … … 108 108 this._defaults = { // Global defaults for all the date picker instances 109 109 showOn: "focus", // "focus" for popup on focus, 110 110 // "button" for trigger button, or "both" for either 111 111 showAnim: "fadeIn", // Name of jQuery animation for popup 112 112 showOptions: {}, // Options for enhanced animations 113 113 defaultDate: null, // Used when field is blank: actual date, 114 114 // +/-number for offset from today, null for today 115 115 appendText: "", // Display text following the input box, e.g. showing the format 116 116 buttonText: "...", // Text for trigger button … … 118 118 buttonImageOnly: false, // True if the image appears alone, false if it appears on a button 119 119 hideIfNoPrevNext: false, // True to hide next/previous month links 120 120 // if not applicable, false to just disable them 121 121 navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links 122 122 gotoCurrent: false, // True if today link goes back to current selection instead … … 124 124 changeYear: false, // True if year can be selected directly, false if only prev/next 125 125 yearRange: "c-10:c+10", // Range of years to display in drop-down, 126 127 126 // either relative to today's year (-nn:+nn), relative to currently displayed year 127 // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n) 128 128 showOtherMonths: false, // True to show dates in other months, false to leave blank 129 129 selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable 130 130 showWeek: false, // True to show week of the year, false to not show it 131 131 calculateWeek: this.iso8601Week, // How to calculate the week of the year, 132 132 // takes a Date and returns the number of the week for it 133 133 shortYearCutoff: "+10", // Short year values < this are in the current century, 134 135 134 // > this are in the previous century, 135 // string value starting with "+" for current year + value 136 136 minDate: null, // The earliest selectable date, or null for no limit 137 137 maxDate: null, // The latest selectable date, or null for no limit 138 138 duration: "fast", // Duration of display/closure 139 139 beforeShowDay: null, // Function that takes a date and returns an array with 140 141 140 // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "", 141 // [2] = cell title (optional), e.g. $.datepicker.noWeekends 142 142 beforeShow: null, // Function that takes an input field and 143 143 // returns a set of custom settings for the date picker 144 144 onSelect: null, // Define a callback function when a date is selected 145 145 onChangeMonthYear: null, // Define a callback function when the month or year is changed … … 214 214 inline: inline, // is datepicker inline or not 215 215 dpDiv: ( !inline ? this.dpDiv : // presentation div 216 datepicker_bindHover( $( "<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) ) ) };216 datepicker_bindHover( $( "<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) ) ) }; 217 217 }, 218 218 … … 227 227 this._attachments( input, inst ); 228 228 input.addClass( this.markerClassName ).on( "keydown", this._doKeyDown ). 229 229 on( "keypress", this._doKeyPress ).on( "keyup", this._doKeyUp ); 230 230 this._autoSize( inst ); 231 231 $.data( target, "datepicker", inst ); … … 427 427 inst.trigger.remove(); 428 428 $target.removeClass( this.markerClassName ). 429 430 431 432 429 off( "focus", this._showDatepicker ). 430 off( "keydown", this._doKeyDown ). 431 off( "keypress", this._doKeyPress ). 432 off( "keyup", this._doKeyUp ); 433 433 } else if ( nodeName === "div" || nodeName === "span" ) { 434 434 $target.removeClass( this.markerClassName ).empty(); … … 457 457 target.disabled = false; 458 458 inst.trigger.filter( "button" ). 459 460 461 462 459 each( function() { 460 this.disabled = false; 461 } ).end(). 462 filter( "img" ).css( { opacity: "1.0", cursor: "" } ); 463 463 } else if ( nodeName === "div" || nodeName === "span" ) { 464 464 inline = $target.children( "." + this._inlineClass ); 465 465 inline.children().removeClass( "ui-state-disabled" ); 466 466 inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ). 467 467 prop( "disabled", false ); 468 468 } 469 469 this._disabledInputs = $.map( this._disabledInputs, … … 491 491 target.disabled = true; 492 492 inst.trigger.filter( "button" ). 493 494 495 496 493 each( function() { 494 this.disabled = true; 495 } ).end(). 496 filter( "img" ).css( { opacity: "0.5", cursor: "default" } ); 497 497 } else if ( nodeName === "div" || nodeName === "span" ) { 498 498 inline = $target.children( "." + this._inlineClass ); 499 499 inline.children().addClass( "ui-state-disabled" ); 500 500 inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ). 501 501 prop( "disabled", true ); 502 502 } 503 503 this._disabledInputs = $.map( this._disabledInputs, … … 555 555 return ( name === "defaults" ? $.extend( {}, $.datepicker._defaults ) : 556 556 ( inst ? ( name === "all" ? $.extend( {}, inst.settings ) : 557 this._get( inst, name ) ) : null ) );557 this._get( inst, name ) ) : null ) ); 558 558 } 559 559 … … 648 648 switch ( event.keyCode ) { 649 649 case 9: $.datepicker._hideDatepicker(); 650 651 650 handled = false; 651 break; // hide on tab out 652 652 case 13: sel = $( "td." + $.datepicker._dayOverClass + ":not(." + 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 653 $.datepicker._currentClass + ")", inst.dpDiv ); 654 if ( sel[ 0 ] ) { 655 $.datepicker._selectDay( event.target, inst.selectedMonth, inst.selectedYear, sel[ 0 ] ); 656 } 657 658 onSelect = $.datepicker._get( inst, "onSelect" ); 659 if ( onSelect ) { 660 dateStr = $.datepicker._formatDate( inst ); 661 662 // Trigger custom callback 663 onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] ); 664 } else { 665 $.datepicker._hideDatepicker(); 666 } 667 668 return false; // don't submit the form 669 669 case 27: $.datepicker._hideDatepicker(); 670 670 break; // hide on escape 671 671 case 33: $.datepicker._adjustDate( event.target, ( event.ctrlKey ? 672 -$.datepicker._get( inst, "stepBigMonths" ) : 673 -$.datepicker._get( inst, "stepMonths" ) ), "M" ); 674 break; // previous month/year on page up/+ ctrl 675 case 34: $.datepicker._adjustDate( event.target, ( event.ctrlKey ? 676 +$.datepicker._get( inst, "stepBigMonths" ) : 677 +$.datepicker._get( inst, "stepMonths" ) ), "M" ); 678 break; // next month/year on page down/+ ctrl 679 case 35: if ( event.ctrlKey || event.metaKey ) { 680 $.datepicker._clearDate( event.target ); 681 } 682 handled = event.ctrlKey || event.metaKey; 683 break; // clear on ctrl or command +end 684 case 36: if ( event.ctrlKey || event.metaKey ) { 685 $.datepicker._gotoToday( event.target ); 686 } 687 handled = event.ctrlKey || event.metaKey; 688 break; // current on ctrl or command +home 689 case 37: if ( event.ctrlKey || event.metaKey ) { 690 $.datepicker._adjustDate( event.target, ( isRTL ? +1 : -1 ), "D" ); 691 } 692 handled = event.ctrlKey || event.metaKey; 693 694 // -1 day on ctrl or command +left 695 if ( event.originalEvent.altKey ) { 696 $.datepicker._adjustDate( event.target, ( event.ctrlKey ? 672 697 -$.datepicker._get( inst, "stepBigMonths" ) : 673 698 -$.datepicker._get( inst, "stepMonths" ) ), "M" ); 674 break; // previous month/year on page up/+ ctrl 675 case 34: $.datepicker._adjustDate( event.target, ( event.ctrlKey ? 699 } 700 701 // next month/year on alt +left on Mac 702 break; 703 case 38: if ( event.ctrlKey || event.metaKey ) { 704 $.datepicker._adjustDate( event.target, -7, "D" ); 705 } 706 handled = event.ctrlKey || event.metaKey; 707 break; // -1 week on ctrl or command +up 708 case 39: if ( event.ctrlKey || event.metaKey ) { 709 $.datepicker._adjustDate( event.target, ( isRTL ? -1 : +1 ), "D" ); 710 } 711 handled = event.ctrlKey || event.metaKey; 712 713 // +1 day on ctrl or command +right 714 if ( event.originalEvent.altKey ) { 715 $.datepicker._adjustDate( event.target, ( event.ctrlKey ? 676 716 +$.datepicker._get( inst, "stepBigMonths" ) : 677 717 +$.datepicker._get( inst, "stepMonths" ) ), "M" ); 678 break; // next month/year on page down/+ ctrl 679 case 35: if ( event.ctrlKey || event.metaKey ) { 680 $.datepicker._clearDate( event.target ); 681 } 682 handled = event.ctrlKey || event.metaKey; 683 break; // clear on ctrl or command +end 684 case 36: if ( event.ctrlKey || event.metaKey ) { 685 $.datepicker._gotoToday( event.target ); 686 } 687 handled = event.ctrlKey || event.metaKey; 688 break; // current on ctrl or command +home 689 case 37: if ( event.ctrlKey || event.metaKey ) { 690 $.datepicker._adjustDate( event.target, ( isRTL ? +1 : -1 ), "D" ); 691 } 692 handled = event.ctrlKey || event.metaKey; 693 694 // -1 day on ctrl or command +left 695 if ( event.originalEvent.altKey ) { 696 $.datepicker._adjustDate( event.target, ( event.ctrlKey ? 697 -$.datepicker._get( inst, "stepBigMonths" ) : 698 -$.datepicker._get( inst, "stepMonths" ) ), "M" ); 699 } 700 701 // next month/year on alt +left on Mac 702 break; 703 case 38: if ( event.ctrlKey || event.metaKey ) { 704 $.datepicker._adjustDate( event.target, -7, "D" ); 705 } 706 handled = event.ctrlKey || event.metaKey; 707 break; // -1 week on ctrl or command +up 708 case 39: if ( event.ctrlKey || event.metaKey ) { 709 $.datepicker._adjustDate( event.target, ( isRTL ? -1 : +1 ), "D" ); 710 } 711 handled = event.ctrlKey || event.metaKey; 712 713 // +1 day on ctrl or command +right 714 if ( event.originalEvent.altKey ) { 715 $.datepicker._adjustDate( event.target, ( event.ctrlKey ? 716 +$.datepicker._get( inst, "stepBigMonths" ) : 717 +$.datepicker._get( inst, "stepMonths" ) ), "M" ); 718 } 719 720 // next month/year on alt +right 721 break; 718 } 719 720 // next month/year on alt +right 721 break; 722 722 case 40: if ( event.ctrlKey || event.metaKey ) { 723 724 725 726 723 $.datepicker._adjustDate( event.target, +7, "D" ); 724 } 725 handled = event.ctrlKey || event.metaKey; 726 break; // +1 week on ctrl or command +down 727 727 default: handled = false; 728 728 } … … 838 838 offset = $.datepicker._checkOffset( inst, offset, isFixed ); 839 839 inst.dpDiv.css( { position: ( $.datepicker._inDialog && $.blockUI ? 840 "static" : ( isFixed ? "fixed" : "absolute" ) ), display: "none",840 "static" : ( isFixed ? "fixed" : "absolute" ) ), display: "none", 841 841 left: offset.left + "px", top: offset.top + "px" } ); 842 842 … … 884 884 } 885 885 inst.dpDiv[ ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ? "add" : "remove" ) + 886 886 "Class" ]( "ui-datepicker-multi" ); 887 887 inst.dpDiv[ ( this._get( inst, "isRTL" ) ? "add" : "remove" ) + 888 888 "Class" ]( "ui-datepicker-rtl" ); 889 889 890 890 if ( inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) { … … 1021 1021 $.datepicker._datepickerShowing && !( $.datepicker._inDialog && $.blockUI ) ) ) || 1022 1022 ( $target.hasClass( $.datepicker.markerClassName ) && $.datepicker._curInst !== inst ) ) { 1023 1023 $.datepicker._hideDatepicker(); 1024 1024 } 1025 1025 }, … … 1063 1063 1064 1064 inst[ "selected" + ( period === "M" ? "Month" : "Year" ) ] = 1065 inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] =1066 parseInt( select.options[ select.selectedIndex ].value, 10 );1065 inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] = 1066 parseInt( select.options[ select.selectedIndex ].value, 10 ); 1067 1067 1068 1068 this._notifyChange( inst ); … … 1215 1215 var isDoubled = lookAhead( match ), 1216 1216 size = ( match === "@" ? 14 : ( match === "!" ? 20 : 1217 ( match === "y" && isDoubled ? 4 : ( match === "o" ? 3 : 2 ) ) ) ),1217 ( match === "y" && isDoubled ? 4 : ( match === "o" ? 3 : 2 ) ) ) ), 1218 1218 minSize = ( match === "y" ? size : 1 ), 1219 1219 digits = new RegExp( "^\\d{" + minSize + "," + size + "}" ), … … 1578 1578 1579 1579 var date = ( offset.toLowerCase().match( /^c/ ) ? 1580 $.datepicker._getDate( inst ) : null ) || new Date(),1580 $.datepicker._getDate( inst ) : null ) || new Date(), 1581 1581 year = date.getFullYear(), 1582 1582 month = date.getMonth(), … … 1655 1655 var startDate = ( !inst.currentYear || ( inst.input && inst.input.val() === "" ) ? null : 1656 1656 this._daylightSavingAdjust( new Date( 1657 inst.currentYear, inst.currentMonth, inst.currentDay ) ) );1658 1657 inst.currentYear, inst.currentMonth, inst.currentDay ) ) ); 1658 return startDate; 1659 1659 }, 1660 1660 … … 1883 1883 ( /all|right/.test( cornerClass ) && row === 0 ? ( isRTL ? prev : next ) : "" ) + 1884 1884 this._generateMonthYearHeader( inst, drawMonth, drawYear, minDate, maxDate, 1885 row > 0 || col > 0, monthNames, monthNamesShort ) + // draw month headers1885 row > 0 || col > 0, monthNames, monthNamesShort ) + // draw month headers 1886 1886 "</div><table class='ui-datepicker-calendar'><thead>" + 1887 1887 "<tr>"; … … 1918 1918 ( defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime() ) ? 1919 1919 1920 // or defaultDate is current printedDate and defaultDate is selectedDate1921 " " + this._dayOverClass : "" ) + // highlight selected day1920 // or defaultDate is current printedDate and defaultDate is selectedDate 1921 " " + this._dayOverClass : "" ) + // highlight selected day 1922 1922 ( unselectable ? " " + this._unselectableClass + " ui-state-disabled" : "" ) + // highlight unselectable days 1923 1923 ( otherMonth && !showOtherMonths ? "" : " " + daySettings[ 1 ] + // highlight custom dates 1924 ( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day1925 ( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different)1924 ( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day 1925 ( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different) 1926 1926 ( ( !otherMonth || showOtherMonths ) && daySettings[ 2 ] ? " title='" + daySettings[ 2 ].replace( /'/g, "'" ) + "'" : "" ) + // cell title 1927 1927 ( unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'" ) + ">" + // actions 1928 1928 ( otherMonth && !showOtherMonths ? " " : // display for other months 1929 ( unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +1930 ( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) +1931 ( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day1932 ( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months1933 "' href='#' aria-current='" + ( printDate.getTime() === currentDate.getTime() ? "true" : "false" ) + // mark date as selected for screen reader1934 "' data-date='" + printDate.getDate() + // store date as data1935 "'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date1929 ( unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" + 1930 ( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) + 1931 ( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day 1932 ( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months 1933 "' href='#' aria-current='" + ( printDate.getTime() === currentDate.getTime() ? "true" : "false" ) + // mark date as selected for screen reader 1934 "' data-date='" + printDate.getDate() + // store date as data 1935 "'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date 1936 1936 printDate.setDate( printDate.getDate() + 1 ); 1937 1937 printDate = this._daylightSavingAdjust( printDate ); … … 1945 1945 } 1946 1946 calender += "</tbody></table>" + ( isMultiMonth ? "</div>" + 1947 1947 ( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "<div class='ui-datepicker-row-break'></div>" : "" ) : "" ); 1948 1948 group += calender; 1949 1949 } … … 1957 1957 /* Generate the month and year header. */ 1958 1958 _generateMonthYearHeader: function( inst, drawMonth, drawYear, minDate, maxDate, 1959 secondary, monthNames, monthNamesShort ) {1959 secondary, monthNames, monthNamesShort ) { 1960 1960 1961 1961 var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear, … … 2002 2002 var year = ( value.match( /c[+\-].*/ ) ? drawYear + parseInt( value.substring( 1 ), 10 ) : 2003 2003 ( value.match( /[+\-].*/ ) ? thisYear + parseInt( value, 10 ) : 2004 parseInt( value, 10 ) ) );2004 parseInt( value, 10 ) ) ); 2005 2005 return ( isNaN( year ) ? thisYear : year ); 2006 2006 }; … … 2087 2087 var numMonths = this._getNumberOfMonths( inst ), 2088 2088 date = this._daylightSavingAdjust( new Date( curYear, 2089 curMonth + ( offset < 0 ? offset : numMonths[ 0 ] * numMonths[ 1 ] ), 1 ) );2089 curMonth + ( offset < 0 ? offset : numMonths[ 0 ] * numMonths[ 1 ] ), 1 ) ); 2090 2090 2091 2091 if ( offset < 0 ) { … … 2103 2103 maxYear = null, 2104 2104 years = this._get( inst, "yearRange" ); 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2105 if ( years ) { 2106 yearSplit = years.split( ":" ); 2107 currentYear = new Date().getFullYear(); 2108 minYear = parseInt( yearSplit[ 0 ], 10 ); 2109 maxYear = parseInt( yearSplit[ 1 ], 10 ); 2110 if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) { 2111 minYear += currentYear; 2112 } 2113 if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) { 2114 maxYear += currentYear; 2115 } 2116 } 2117 2117 2118 2118 return ( ( !minDate || date.getTime() >= minDate.getTime() ) && … … 2140 2140 } 2141 2141 var date = ( day ? ( typeof day === "object" ? day : 2142 this._daylightSavingAdjust( new Date( year, month, day ) ) ) :2142 this._daylightSavingAdjust( new Date( year, month, day ) ) ) : 2143 2143 this._daylightSavingAdjust( new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) ); 2144 2144 return this.formatDate( this._get( inst, "dateFormat" ), date, this._getFormatConfig( inst ) ); … … 2154 2154 var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a"; 2155 2155 return dpDiv.on( "mouseout", selector, function() { 2156 2157 2158 2159 2160 2161 2162 2163 2156 $( this ).removeClass( "ui-state-hover" ); 2157 if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) { 2158 $( this ).removeClass( "ui-datepicker-prev-hover" ); 2159 } 2160 if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) { 2161 $( this ).removeClass( "ui-datepicker-next-hover" ); 2162 } 2163 } ) 2164 2164 .on( "mouseover", selector, datepicker_handleMouseover ); 2165 2165 } … … 2214 2214 if ( typeof options === "string" && ( options === "isDisabled" || options === "getDate" || options === "widget" ) ) { 2215 2215 return $.datepicker[ "_" + options + "Datepicker" ]. 2216 2216 apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) ); 2217 2217 } 2218 2218 if ( options === "option" && arguments.length === 2 && typeof arguments[ 1 ] === "string" ) { 2219 2219 return $.datepicker[ "_" + options + "Datepicker" ]. 2220 2220 apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) ); 2221 2221 } 2222 2222 return this.each( function() { … … 2233 2233 $.datepicker.initialized = false; 2234 2234 $.datepicker.uuid = new Date().getTime(); 2235 $.datepicker.version = "1.13. 0";2235 $.datepicker.version = "1.13.1"; 2236 2236 2237 2237 return $.datepicker; -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/dialog.js
r51897 r52665 1 1 /*! 2 * jQuery UI Dialog 1.13. 02 * jQuery UI Dialog 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 40 40 41 41 $.widget( "ui.dialog", { 42 version: "1.13. 0",42 version: "1.13.1", 43 43 options: { 44 44 appendTo: "body", … … 355 355 keydown: function( event ) { 356 356 if ( this.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode && 357 357 event.keyCode === $.ui.keyCode.ESCAPE ) { 358 358 event.preventDefault(); 359 359 this.close( event ); … … 370 370 371 371 if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) && 372 372 !event.shiftKey ) { 373 373 this._delay( function() { 374 374 first.trigger( "focus" ); … … 376 376 event.preventDefault(); 377 377 } else if ( ( event.target === first[ 0 ] || 378 378 event.target === this.uiDialog[ 0 ] ) && event.shiftKey ) { 379 379 this._delay( function() { 380 380 last.trigger( "focus" ); -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/draggable.js
r51897 r52665 1 1 /*! 2 * jQuery UI Draggable 1.13. 02 * jQuery UI Draggable 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 35 35 36 36 $.widget( "ui.draggable", $.ui.mouse, { 37 version: "1.13. 0",37 version: "1.13.1", 38 38 widgetEventPrefix: "drag", 39 39 options: { … … 103 103 // Among others, prevent a drag on a resizable-handle 104 104 if ( this.helper || o.disabled || 105 105 $( event.target ).closest( ".ui-resizable-handle" ).length > 0 ) { 106 106 return false; 107 107 } … … 186 186 this.offsetParent = this.helper.offsetParent(); 187 187 this.hasFixedAncestor = this.helper.parents().filter( function() { 188 189 188 return $( this ).css( "position" ) === "fixed"; 189 } ).length > 0; 190 190 191 191 //The element's absolute position on the page minus margins … … 295 295 296 296 if ( ( this.options.revert === "invalid" && !dropped ) || 297 298 297 ( this.options.revert === "valid" && dropped ) || 298 this.options.revert === true || ( typeof this.options.revert === "function" && 299 299 this.options.revert.call( this.element, dropped ) ) 300 300 ) { … … 389 389 390 390 if ( helper[ 0 ] !== this.element[ 0 ] && 391 391 !( /(fixed|absolute)/ ).test( helper.css( "position" ) ) ) { 392 392 helper.css( "position", "absolute" ); 393 393 } … … 442 442 // offset of the parent, and never recalculated upon drag 443 443 if ( this.cssPosition === "absolute" && this.scrollParent[ 0 ] !== document && 444 444 $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) { 445 445 po.left += this.scrollParent.scrollLeft(); 446 446 po.top += this.scrollParent.scrollTop(); … … 509 509 $( window ).scrollTop() - this.offset.relative.top - this.offset.parent.top, 510 510 $( window ).scrollLeft() + $( window ).width() - 511 511 this.helperProportions.width - this.margins.left, 512 512 $( window ).scrollTop() + 513 514 513 ( $( window ).height() || document.body.parentNode.scrollHeight ) - 514 this.helperProportions.height - this.margins.top 515 515 ]; 516 516 return; … … 523 523 $( document ).width() - this.helperProportions.width - this.margins.left, 524 524 ( $( document ).height() || document.body.parentNode.scrollHeight ) - 525 525 this.helperProportions.height - this.margins.top 526 526 ]; 527 527 return; … … 548 548 this.containment = [ 549 549 ( parseInt( c.css( "borderLeftWidth" ), 10 ) || 0 ) + 550 550 ( parseInt( c.css( "paddingLeft" ), 10 ) || 0 ), 551 551 ( parseInt( c.css( "borderTopWidth" ), 10 ) || 0 ) + 552 552 ( parseInt( c.css( "paddingTop" ), 10 ) || 0 ), 553 553 ( isUserScrollable ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) - 554 555 556 557 558 554 ( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) - 555 ( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) - 556 this.helperProportions.width - 557 this.margins.left - 558 this.margins.right, 559 559 ( isUserScrollable ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) - 560 561 562 563 564 560 ( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) - 561 ( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) - 562 this.helperProportions.height - 563 this.margins.top - 564 this.margins.bottom 565 565 ]; 566 566 this.relativeContainer = c; … … 667 667 pageY = containment ? ( ( top - this.offset.click.top >= containment[ 1 ] || 668 668 top - this.offset.click.top > containment[ 3 ] ) ? 669 670 671 669 top : 670 ( ( top - this.offset.click.top >= containment[ 1 ] ) ? 671 top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) : top; 672 672 673 673 left = o.grid[ 0 ] ? this.originalPageX + … … 676 676 pageX = containment ? ( ( left - this.offset.click.left >= containment[ 0 ] || 677 677 left - this.offset.click.left > containment[ 2 ] ) ? 678 679 680 678 left : 679 ( ( left - this.offset.click.left >= containment[ 0 ] ) ? 680 left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) : left; 681 681 } 682 682 … … 852 852 853 853 if ( this !== sortable && 854 855 854 this._intersectsWith( this.containerCache ) && 855 $.contains( sortable.element[ 0 ], this.element[ 0 ] ) ) { 856 856 innermostIntersecting = false; 857 857 } … … 1013 1013 1014 1014 if ( i.scrollParentNotHidden[ 0 ] !== i.document[ 0 ] && 1015 1015 i.scrollParentNotHidden[ 0 ].tagName !== "HTML" ) { 1016 1016 i.overflowOffset = i.scrollParentNotHidden.offset(); 1017 1017 } … … 1027 1027 if ( !o.axis || o.axis !== "x" ) { 1028 1028 if ( ( i.overflowOffset.top + scrollParent.offsetHeight ) - event.pageY < 1029 1029 o.scrollSensitivity ) { 1030 1030 scrollParent.scrollTop = scrolled = scrollParent.scrollTop + o.scrollSpeed; 1031 1031 } else if ( event.pageY - i.overflowOffset.top < o.scrollSensitivity ) { … … 1036 1036 if ( !o.axis || o.axis !== "y" ) { 1037 1037 if ( ( i.overflowOffset.left + scrollParent.offsetWidth ) - event.pageX < 1038 1038 o.scrollSensitivity ) { 1039 1039 scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft + o.scrollSpeed; 1040 1040 } else if ( event.pageX - i.overflowOffset.left < o.scrollSensitivity ) { … … 1049 1049 scrolled = $( document ).scrollTop( $( document ).scrollTop() - o.scrollSpeed ); 1050 1050 } else if ( $( window ).height() - ( event.pageY - $( document ).scrollTop() ) < 1051 1051 o.scrollSensitivity ) { 1052 1052 scrolled = $( document ).scrollTop( $( document ).scrollTop() + o.scrollSpeed ); 1053 1053 } … … 1060 1060 ); 1061 1061 } else if ( $( window ).width() - ( event.pageX - $( document ).scrollLeft() ) < 1062 1062 o.scrollSensitivity ) { 1063 1063 scrolled = $( document ).scrollLeft( 1064 1064 $( document ).scrollLeft() + o.scrollSpeed … … 1113 1113 1114 1114 if ( x2 < l - d || x1 > r + d || y2 < t - d || y1 > b + d || 1115 1115 !$.contains( inst.snapElements[ i ].item.ownerDocument, 1116 1116 inst.snapElements[ i ].item ) ) { 1117 1117 if ( inst.snapElements[ i ].snapping ) { -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/droppable.js
r51897 r52665 1 1 /*! 2 * jQuery UI Droppable 1.13. 02 * jQuery UI Droppable 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 35 35 36 36 $.widget( "ui.droppable", { 37 version: "1.13. 0",37 version: "1.13.1", 38 38 widgetEventPrefix: "drop", 39 39 options: { … … 151 151 // Bail if draggable and droppable are same element 152 152 if ( !draggable || ( draggable.currentItem || 153 153 draggable.element )[ 0 ] === this.element[ 0 ] ) { 154 154 return; 155 155 } 156 156 157 157 if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || 158 158 draggable.element ) ) ) { 159 159 this._addHoverClass(); 160 160 this._trigger( "over", event, this.ui( draggable ) ); … … 169 169 // Bail if draggable and droppable are same element 170 170 if ( !draggable || ( draggable.currentItem || 171 171 draggable.element )[ 0 ] === this.element[ 0 ] ) { 172 172 return; 173 173 } 174 174 175 175 if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem || 176 176 draggable.element ) ) ) { 177 177 this._removeHoverClass(); 178 178 this._trigger( "out", event, this.ui( draggable ) ); … … 188 188 // Bail if draggable and droppable are same element 189 189 if ( !draggable || ( draggable.currentItem || 190 190 draggable.element )[ 0 ] === this.element[ 0 ] ) { 191 191 return false; 192 192 } … … 219 219 220 220 if ( this.accept.call( this.element[ 0 ], 221 221 ( draggable.currentItem || draggable.element ) ) ) { 222 222 this._removeActiveClass(); 223 223 this._removeHoverClass(); … … 282 282 283 283 switch ( toleranceMode ) { 284 case "fit":285 return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b );286 case "intersect":287 return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half288 x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half289 t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half290 y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half291 case "pointer":292 return isOverAxis( event.pageY, t, droppable.proportions().height ) &&293 isOverAxis( event.pageX, l, droppable.proportions().width );294 case "touch":295 return (296 ( y1 >= t && y1 <= b ) || // Top edge touching297 ( y2 >= t && y2 <= b ) || // Bottom edge touching298 ( y1 < t && y2 > b ) // Surrounded vertically299 ) && (300 ( x1 >= l && x1 <= r ) || // Left edge touching301 ( x2 >= l && x2 <= r ) || // Right edge touching302 ( x1 < l && x2 > r ) // Surrounded horizontally303 );304 default:305 return false;284 case "fit": 285 return ( l <= x1 && x2 <= r && t <= y1 && y2 <= b ); 286 case "intersect": 287 return ( l < x1 + ( draggable.helperProportions.width / 2 ) && // Right Half 288 x2 - ( draggable.helperProportions.width / 2 ) < r && // Left Half 289 t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half 290 y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half 291 case "pointer": 292 return isOverAxis( event.pageY, t, droppable.proportions().height ) && 293 isOverAxis( event.pageX, l, droppable.proportions().width ); 294 case "touch": 295 return ( 296 ( y1 >= t && y1 <= b ) || // Top edge touching 297 ( y2 >= t && y2 <= b ) || // Bottom edge touching 298 ( y1 < t && y2 > b ) // Surrounded vertically 299 ) && ( 300 ( x1 >= l && x1 <= r ) || // Left edge touching 301 ( x2 >= l && x2 <= r ) || // Right edge touching 302 ( x1 < l && x2 > r ) // Surrounded horizontally 303 ); 304 default: 305 return false; 306 306 } 307 307 }; … … 325 325 // No disabled and non-accepted 326 326 if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ], 327 327 ( t.currentItem || t.element ) ) ) ) { 328 328 continue; 329 329 } … … 367 367 } 368 368 if ( !this.options.disabled && this.visible && 369 369 $.ui.intersect( draggable, this, this.options.tolerance, event ) ) { 370 370 dropped = this._drop.call( this, event ) || dropped; 371 371 } 372 372 373 373 if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ], 374 374 ( draggable.currentItem || draggable.element ) ) ) { 375 375 this.isout = true; 376 376 this.isover = false; -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-blind.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Blind 1.13. 02 * jQuery UI Effects Blind 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-bounce.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Bounce 1.13. 02 * jQuery UI Effects Bounce 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-clip.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Clip 1.13. 02 * jQuery UI Effects Clip 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-drop.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Drop 1.13. 02 * jQuery UI Effects Drop 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-explode.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Explode 1.13. 02 * jQuery UI Effects Explode 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 84 84 // where the original was located +left and +top equal to the size of pieces 85 85 .parent() 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 86 .addClass( "ui-effects-explode" ) 87 .css( { 88 position: "absolute", 89 overflow: "hidden", 90 width: width, 91 height: height, 92 left: left + ( show ? mx * width : 0 ), 93 top: top + ( show ? my * height : 0 ), 94 opacity: show ? 0 : 1 95 } ) 96 .animate( { 97 left: left + ( show ? 0 : mx * width ), 98 top: top + ( show ? 0 : my * height ), 99 opacity: show ? 1 : 0 100 }, options.duration || 500, options.easing, childComplete ); 101 101 } 102 102 } -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-fade.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Fade 1.13. 02 * jQuery UI Effects Fade 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-fold.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Fold 1.13. 02 * jQuery UI Effects Fold 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-highlight.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Highlight 1.13. 02 * jQuery UI Effects Highlight 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-puff.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Puff 1.13. 02 * jQuery UI Effects Puff 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-pulsate.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Pulsate 1.13. 02 * jQuery UI Effects Pulsate 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-scale.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Scale 1.13. 02 * jQuery UI Effects Scale 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-shake.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Shake 1.13. 02 * jQuery UI Effects Shake 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-size.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Size 1.13. 02 * jQuery UI Effects Size 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-slide.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Slide 1.13. 02 * jQuery UI Effects Slide 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect-transfer.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects Transfer 1.13. 02 * jQuery UI Effects Transfer 1.13.1 3 3 * http://jqueryui.com 4 4 * -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/effect.js
r51897 r52665 1 1 /*! 2 * jQuery UI Effects 1.13. 02 * jQuery UI Effects 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 33 33 // Include version.js 34 34 $.ui = $.ui || {}; 35 $.ui.version = "1.13. 0";35 $.ui.version = "1.13.1"; 36 36 37 37 // Source: jquery-var-for-color.js … … 813 813 } 814 814 815 // Support: Opera, IE <9815 // Support: Opera, IE <9 816 816 } else { 817 817 for ( key in style ) { … … 1120 1120 1121 1121 $.extend( $.effects, { 1122 version: "1.13. 0",1122 version: "1.13.1", 1123 1123 1124 1124 define: function( name, mode, effect ) { … … 1202 1202 1203 1203 switch ( origin[ 0 ] ) { 1204 case "top":1205 y = 0;1206 break;1207 case "middle":1208 y = 0.5;1209 break;1210 case "bottom":1211 y = 1;1212 break;1213 default:1214 y = origin[ 0 ] / original.height;1204 case "top": 1205 y = 0; 1206 break; 1207 case "middle": 1208 y = 0.5; 1209 break; 1210 case "bottom": 1211 y = 1; 1212 break; 1213 default: 1214 y = origin[ 0 ] / original.height; 1215 1215 } 1216 1216 1217 1217 switch ( origin[ 1 ] ) { 1218 case "left":1219 x = 0;1220 break;1221 case "center":1222 x = 0.5;1223 break;1224 case "right":1225 x = 1;1226 break;1227 default:1228 x = origin[ 1 ] / original.width;1218 case "left": 1219 x = 0; 1220 break; 1221 case "center": 1222 x = 0.5; 1223 break; 1224 case "right": 1225 x = 1; 1226 break; 1227 default: 1228 x = origin[ 1 ] / original.width; 1229 1229 } 1230 1230 … … 1251 1251 marginRight: element.css( "marginRight" ) 1252 1252 } ) 1253 .outerWidth( element.outerWidth() )1254 .outerHeight( element.outerHeight() );1253 .outerWidth( element.outerWidth() ) 1254 .outerHeight( element.outerHeight() ); 1255 1255 1256 1256 if ( /^(static|relative)/.test( cssPosition ) ) { … … 1273 1273 "float": element.css( "float" ) 1274 1274 } ) 1275 .outerWidth( element.outerWidth() )1276 .outerHeight( element.outerHeight() )1277 .addClass( "ui-effects-placeholder" );1275 .outerWidth( element.outerWidth() ) 1276 .outerHeight( element.outerHeight() ) 1277 .addClass( "ui-effects-placeholder" ); 1278 1278 1279 1279 element.data( dataSpace + "placeholder", placeholder ); … … 1291 1291 removePlaceholder: function( element ) { 1292 1292 var dataKey = dataSpace + "placeholder", 1293 1293 placeholder = element.data( dataKey ); 1294 1294 1295 1295 if ( placeholder ) { … … 1363 1363 effect.duration = $.fx.off ? 0 : 1364 1364 typeof speed === "number" ? speed : 1365 speed in $.fx.speeds ? $.fx.speeds[ speed ] :1366 $.fx.speeds._default;1365 speed in $.fx.speeds ? $.fx.speeds[ speed ] : 1366 $.fx.speeds._default; 1367 1367 1368 1368 effect.complete = callback || options.complete; … … 1421 1421 // See $.uiBackCompat inside of run() for removal of defaultMode in 1.14 1422 1422 if ( defaultMode && ( normalizedMode === "show" || 1423 1423 ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) { 1424 1424 el.show(); 1425 1425 } … … 1599 1599 1600 1600 function parseClip( str, element ) { 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1601 var outerWidth = element.outerWidth(), 1602 outerHeight = element.outerHeight(), 1603 clipRegex = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/, 1604 values = clipRegex.exec( str ) || [ "", 0, outerWidth, outerHeight, 0 ]; 1605 1606 return { 1607 top: parseFloat( values[ 1 ] ) || 0, 1608 right: values[ 2 ] === "auto" ? outerWidth : parseFloat( values[ 2 ] ), 1609 bottom: values[ 3 ] === "auto" ? outerHeight : parseFloat( values[ 3 ] ), 1610 left: parseFloat( values[ 4 ] ) || 0 1611 }; 1612 1612 } 1613 1613 -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/menu.js
r51897 r52665 1 1 /*! 2 * jQuery UI Menu 1.13. 02 * jQuery UI Menu 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 36 36 37 37 return $.widget( "ui.menu", { 38 version: "1.13. 0",38 version: "1.13.1", 39 39 defaultElement: "<ul>", 40 40 delay: 300, … … 96 96 this.expand( event ); 97 97 } else if ( !this.element.is( ":focus" ) && 98 98 active.closest( ".ui-menu" ).length ) { 99 99 100 100 // Redirect focus to the menu … … 163 163 // If the mouse didn't actually move, but the page was scrolled, ignore the event (#9356) 164 164 if ( event.clientX === this.lastMousePosition.x && 165 165 event.clientY === this.lastMousePosition.y ) { 166 166 return; 167 167 } … … 203 203 .removeAttr( "aria-activedescendant" ) 204 204 .find( ".ui-menu" ).addBack() 205 206 207 208 205 .removeAttr( "role aria-labelledby aria-expanded aria-hidden aria-disabled " + 206 "tabIndex" ) 207 .removeUniqueId() 208 .show(); 209 209 210 210 submenus.children().each( function() { … … 221 221 222 222 switch ( event.keyCode ) { 223 case $.ui.keyCode.PAGE_UP: 224 this.previousPage( event ); 225 break; 226 case $.ui.keyCode.PAGE_DOWN: 227 this.nextPage( event ); 228 break; 229 case $.ui.keyCode.HOME: 230 this._move( "first", "first", event ); 231 break; 232 case $.ui.keyCode.END: 233 this._move( "last", "last", event ); 234 break; 235 case $.ui.keyCode.UP: 236 this.previous( event ); 237 break; 238 case $.ui.keyCode.DOWN: 239 this.next( event ); 240 break; 241 case $.ui.keyCode.LEFT: 242 this.collapse( event ); 243 break; 244 case $.ui.keyCode.RIGHT: 245 if ( this.active && !this.active.is( ".ui-state-disabled" ) ) { 246 this.expand( event ); 247 } 248 break; 249 case $.ui.keyCode.ENTER: 250 case $.ui.keyCode.SPACE: 251 this._activate( event ); 252 break; 253 case $.ui.keyCode.ESCAPE: 254 this.collapse( event ); 255 break; 256 default: 257 preventDefault = false; 258 prev = this.previousFilter || ""; 259 skip = false; 260 261 // Support number pad values 262 character = event.keyCode >= 96 && event.keyCode <= 105 ? 263 ( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode ); 264 265 clearTimeout( this.filterTimer ); 266 267 if ( character === prev ) { 268 skip = true; 269 } else { 270 character = prev + character; 271 } 272 273 match = this._filterMenuItems( character ); 274 match = skip && match.index( this.active.next() ) !== -1 ? 275 this.active.nextAll( ".ui-menu-item" ) : 276 match; 277 278 // If no matches on the current filter, reset to the last character pressed 279 // to move down the menu to the first item that starts with that character 280 if ( !match.length ) { 281 character = String.fromCharCode( event.keyCode ); 223 case $.ui.keyCode.PAGE_UP: 224 this.previousPage( event ); 225 break; 226 case $.ui.keyCode.PAGE_DOWN: 227 this.nextPage( event ); 228 break; 229 case $.ui.keyCode.HOME: 230 this._move( "first", "first", event ); 231 break; 232 case $.ui.keyCode.END: 233 this._move( "last", "last", event ); 234 break; 235 case $.ui.keyCode.UP: 236 this.previous( event ); 237 break; 238 case $.ui.keyCode.DOWN: 239 this.next( event ); 240 break; 241 case $.ui.keyCode.LEFT: 242 this.collapse( event ); 243 break; 244 case $.ui.keyCode.RIGHT: 245 if ( this.active && !this.active.is( ".ui-state-disabled" ) ) { 246 this.expand( event ); 247 } 248 break; 249 case $.ui.keyCode.ENTER: 250 case $.ui.keyCode.SPACE: 251 this._activate( event ); 252 break; 253 case $.ui.keyCode.ESCAPE: 254 this.collapse( event ); 255 break; 256 default: 257 preventDefault = false; 258 prev = this.previousFilter || ""; 259 skip = false; 260 261 // Support number pad values 262 character = event.keyCode >= 96 && event.keyCode <= 105 ? 263 ( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode ); 264 265 clearTimeout( this.filterTimer ); 266 267 if ( character === prev ) { 268 skip = true; 269 } else { 270 character = prev + character; 271 } 272 282 273 match = this._filterMenuItems( character ); 283 } 284 285 if ( match.length ) { 286 this.focus( event, match ); 287 this.previousFilter = character; 288 this.filterTimer = this._delay( function() { 274 match = skip && match.index( this.active.next() ) !== -1 ? 275 this.active.nextAll( ".ui-menu-item" ) : 276 match; 277 278 // If no matches on the current filter, reset to the last character pressed 279 // to move down the menu to the first item that starts with that character 280 if ( !match.length ) { 281 character = String.fromCharCode( event.keyCode ); 282 match = this._filterMenuItems( character ); 283 } 284 285 if ( match.length ) { 286 this.focus( event, match ); 287 this.previousFilter = character; 288 this.filterTimer = this._delay( function() { 289 delete this.previousFilter; 290 }, 1000 ); 291 } else { 289 292 delete this.previousFilter; 290 }, 1000 ); 291 } else { 292 delete this.previousFilter; 293 } 293 } 294 294 } 295 295 … … 354 354 newWrappers = newItems.children() 355 355 .not( ".ui-menu" ) 356 357 358 359 360 356 .uniqueId() 357 .attr( { 358 tabIndex: -1, 359 role: this._itemRole() 360 } ); 361 361 this._addClass( newItems, "ui-menu-item" ) 362 362 ._addClass( newWrappers, "ui-menu-item-wrapper" ); … … 414 414 activeParent = this.active 415 415 .parent() 416 417 416 .closest( ".ui-menu-item" ) 417 .children( ".ui-menu-item-wrapper" ); 418 418 this._addClass( activeParent, null, "ui-state-active" ); 419 419 … … 696 696 .find( this.options.items ) 697 697 698 699 700 701 702 703 704 698 // Only match on items, not dividers or other content (#10571) 699 .filter( ".ui-menu-item" ) 700 .filter( function() { 701 return regex.test( 702 String.prototype.trim.call( 703 $( this ).children( ".ui-menu-item-wrapper" ).text() ) ); 704 } ); 705 705 } 706 706 } ); -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/mouse.js
r51897 r52665 1 1 /*! 2 * jQuery UI Mouse 1.13. 02 * jQuery UI Mouse 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 37 37 38 38 return $.widget( "ui.mouse", { 39 version: "1.13. 0",39 version: "1.13.1", 40 40 options: { 41 41 cancel: "input, textarea, button, select, option", … … 147 147 // IE mouseup check - mouseup happened when mouse was out of window 148 148 if ( $.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && 149 149 !event.button ) { 150 150 return this._mouseUp( event ); 151 151 152 // Iframe mouseup check - mouseup occurred in another document152 // Iframe mouseup check - mouseup occurred in another document 153 153 } else if ( !event.which ) { 154 154 … … 157 157 // during a drag (#14461) 158 158 if ( event.originalEvent.altKey || event.originalEvent.ctrlKey || 159 159 event.originalEvent.metaKey || event.originalEvent.shiftKey ) { 160 160 this.ignoreMissingWhich = true; 161 161 } else if ( !this.ignoreMissingWhich ) { -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/progressbar.js
r51897 r52665 1 1 /*! 2 * jQuery UI Progressbar 1.13. 02 * jQuery UI Progressbar 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 38 38 39 39 return $.widget( "ui.progressbar", { 40 version: "1.13. 0",40 version: "1.13.1", 41 41 options: { 42 42 classes: { -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/resizable.js
r51897 r52665 1 1 /*! 2 * jQuery UI Resizable 1.13. 02 * jQuery UI Resizable 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 37 37 38 38 $.widget( "ui.resizable", $.ui.mouse, { 39 version: "1.13. 0",39 version: "1.13.1", 40 40 widgetEventPrefix: "resize", 41 41 options: { … … 229 229 230 230 switch ( key ) { 231 case "handles":232 this._removeHandles();233 this._setupHandles();234 break;235 case "aspectRatio":236 this._aspectRatio = !!value;237 break;238 default:239 break;231 case "handles": 232 this._removeHandles(); 233 this._setupHandles(); 234 break; 235 case "aspectRatio": 236 this._aspectRatio = !!value; 237 break; 238 default: 239 break; 240 240 } 241 241 }, … … 301 301 302 302 if ( this.elementIsWrapper && 303 304 305 303 this.originalElement[ 0 ] 304 .nodeName 305 .match( /^(textarea|input|select|button)$/i ) ) { 306 306 axis = $( this.handles[ i ], this.element ); 307 307 … … 312 312 padPos = [ "padding", 313 313 /ne|nw|n/.test( i ) ? "Top" : 314 /se|sw|s/.test( i ) ? "Bottom" :315 /^e$/.test( i ) ? "Right" : "Left" ].join( "" );314 /se|sw|s/.test( i ) ? "Bottom" : 315 /^e$/.test( i ) ? "Right" : "Left" ].join( "" ); 316 316 317 317 target.css( padPos, padWrapper ); … … 385 385 386 386 this.size = this._helper ? { 387 388 389 390 391 392 387 width: this.helper.width(), 388 height: this.helper.height() 389 } : { 390 width: el.width(), 391 height: el.height() 392 }; 393 393 394 394 this.originalSize = this._helper ? { 395 396 397 398 399 400 395 width: el.outerWidth(), 396 height: el.outerHeight() 397 } : { 398 width: el.width(), 399 height: el.height() 400 }; 401 401 402 402 this.sizeDiff = { … … 1064 1064 }; 1065 1065 1066 $( o.alsoResize ).each( function() { 1067 var el = $( this ), start = $( this ).data( "ui-resizable-alsoresize" ), style = {}, 1068 css = el.parents( ui.originalElement[ 0 ] ).length ? 1069 [ "width", "height" ] : 1070 [ "width", "height", "top", "left" ]; 1071 1072 $.each( css, function( i, prop ) { 1073 var sum = ( start[ prop ] || 0 ) + ( delta[ prop ] || 0 ); 1074 if ( sum && sum >= 0 ) { 1075 style[ prop ] = sum || null; 1076 } 1077 } ); 1078 1079 el.css( style ); 1066 $( o.alsoResize ).each( function() { 1067 var el = $( this ), start = $( this ).data( "ui-resizable-alsoresize" ), style = {}, 1068 css = el.parents( ui.originalElement[ 0 ] ).length ? 1069 [ "width", "height" ] : 1070 [ "width", "height", "top", "left" ]; 1071 1072 $.each( css, function( i, prop ) { 1073 var sum = ( start[ prop ] || 0 ) + ( delta[ prop ] || 0 ); 1074 if ( sum && sum >= 0 ) { 1075 style[ prop ] = sum || null; 1076 } 1080 1077 } ); 1078 1079 el.css( style ); 1080 } ); 1081 1081 }, 1082 1082 -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/selectable.js
r51897 r52665 1 1 /*! 2 * jQuery UI Selectable 1.13. 02 * jQuery UI Selectable 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 35 35 36 36 return $.widget( "ui.selectable", $.ui.mouse, { 37 version: "1.13. 0",37 version: "1.13.1", 38 38 options: { 39 39 appendTo: "body", … … 211 211 if ( options.tolerance === "touch" ) { 212 212 hit = ( !( offset.left > x2 || offset.right < x1 || offset.top > y2 || 213 213 offset.bottom < y1 ) ); 214 214 } else if ( options.tolerance === "fit" ) { 215 215 hit = ( offset.left > x1 && offset.right < x2 && offset.top > y1 && 216 216 offset.bottom < y2 ); 217 217 } 218 218 -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/selectmenu.js
r51897 r52665 1 1 /*! 2 * jQuery UI Selectmenu 1.13. 02 * jQuery UI Selectmenu 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 39 39 40 40 return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { 41 version: "1.13. 0",41 version: "1.13.1", 42 42 defaultElement: "<select>", 43 43 options: { … … 228 228 this.menuItems = this.menu.find( "li" ) 229 229 .not( ".ui-selectmenu-optgroup" ) 230 230 .find( ".ui-menu-item-wrapper" ); 231 231 232 232 this._rendered = true; … … 404 404 selection.addRange( this.range ); 405 405 406 // Support: IE8406 // Support: IE8 407 407 } else { 408 408 this.range.select(); … … 440 440 } 441 441 442 // Support: IE8442 // Support: IE8 443 443 } else { 444 444 this.range = document.selection.createRange(); … … 454 454 var preventDefault = true; 455 455 switch ( event.keyCode ) { 456 case $.ui.keyCode.TAB: 457 case $.ui.keyCode.ESCAPE: 458 this.close( event ); 459 preventDefault = false; 460 break; 461 case $.ui.keyCode.ENTER: 462 if ( this.isOpen ) { 463 this._selectFocusedItem( event ); 464 } 465 break; 466 case $.ui.keyCode.UP: 467 if ( event.altKey ) { 468 this._toggle( event ); 469 } else { 456 case $.ui.keyCode.TAB: 457 case $.ui.keyCode.ESCAPE: 458 this.close( event ); 459 preventDefault = false; 460 break; 461 case $.ui.keyCode.ENTER: 462 if ( this.isOpen ) { 463 this._selectFocusedItem( event ); 464 } 465 break; 466 case $.ui.keyCode.UP: 467 if ( event.altKey ) { 468 this._toggle( event ); 469 } else { 470 this._move( "prev", event ); 471 } 472 break; 473 case $.ui.keyCode.DOWN: 474 if ( event.altKey ) { 475 this._toggle( event ); 476 } else { 477 this._move( "next", event ); 478 } 479 break; 480 case $.ui.keyCode.SPACE: 481 if ( this.isOpen ) { 482 this._selectFocusedItem( event ); 483 } else { 484 this._toggle( event ); 485 } 486 break; 487 case $.ui.keyCode.LEFT: 470 488 this._move( "prev", event ); 471 } 472 break; 473 case $.ui.keyCode.DOWN: 474 if ( event.altKey ) { 475 this._toggle( event ); 476 } else { 489 break; 490 case $.ui.keyCode.RIGHT: 477 491 this._move( "next", event ); 478 } 479 break; 480 case $.ui.keyCode.SPACE: 481 if ( this.isOpen ) { 482 this._selectFocusedItem( event ); 483 } else { 484 this._toggle( event ); 485 } 486 break; 487 case $.ui.keyCode.LEFT: 488 this._move( "prev", event ); 489 break; 490 case $.ui.keyCode.RIGHT: 491 this._move( "next", event ); 492 break; 493 case $.ui.keyCode.HOME: 494 case $.ui.keyCode.PAGE_UP: 495 this._move( "first", event ); 496 break; 497 case $.ui.keyCode.END: 498 case $.ui.keyCode.PAGE_DOWN: 499 this._move( "last", event ); 500 break; 501 default: 502 this.menu.trigger( event ); 503 preventDefault = false; 492 break; 493 case $.ui.keyCode.HOME: 494 case $.ui.keyCode.PAGE_UP: 495 this._move( "first", event ); 496 break; 497 case $.ui.keyCode.END: 498 case $.ui.keyCode.PAGE_DOWN: 499 this._move( "last", event ); 500 break; 501 default: 502 this.menu.trigger( event ); 503 preventDefault = false; 504 504 } 505 505 -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/slider.js
r51897 r52665 1 1 /*! 2 * jQuery UI Slider 1.13. 02 * jQuery UI Slider 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 37 37 38 38 return $.widget( "ui.slider", $.ui.mouse, { 39 version: "1.13. 0",39 version: "1.13.1", 40 40 widgetEventPrefix: "slide", 41 41 … … 643 643 valueMax = this._valueMax(); 644 644 valPercent = ( valueMax !== valueMin ) ? 645 646 645 ( value - valueMin ) / ( valueMax - valueMin ) * 100 : 646 0; 647 647 _set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%"; 648 648 this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate ); -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/sortable.js
r51897 r52665 1 1 /*! 2 * jQuery UI Sortable 1.13. 02 * jQuery UI Sortable 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 35 35 36 36 return $.widget( "ui.sortable", $.ui.mouse, { 37 version: "1.13. 0",37 version: "1.13.1", 38 38 widgetEventPrefix: "sort", 39 39 ready: false, … … 197 197 //Prepare the dragged items parent 198 198 this.appendTo = $( o.appendTo !== "parent" ? 199 200 199 o.appendTo : 200 this.currentItem.parent() ); 201 201 202 202 //Create and append the visible helper … … 300 300 //Prepare scrolling 301 301 if ( this.scrollParent[ 0 ] !== this.document[ 0 ] && 302 302 this.scrollParent[ 0 ].tagName !== "HTML" ) { 303 303 this.overflowOffset = this.scrollParent.offset(); 304 304 } … … 357 357 358 358 if ( this.scrollParent[ 0 ] !== this.document[ 0 ] && 359 359 this.scrollParent[ 0 ].tagName !== "HTML" ) { 360 360 361 361 if ( ( this.overflowOffset.top + this.scrollParent[ 0 ].offsetHeight ) - 362 362 event.pageY < o.scrollSensitivity ) { 363 363 this.scrollParent[ 0 ].scrollTop = 364 364 scrolled = this.scrollParent[ 0 ].scrollTop + o.scrollSpeed; … … 369 369 370 370 if ( ( this.overflowOffset.left + this.scrollParent[ 0 ].offsetWidth ) - 371 371 event.pageX < o.scrollSensitivity ) { 372 372 this.scrollParent[ 0 ].scrollLeft = scrolled = 373 373 this.scrollParent[ 0 ].scrollLeft + o.scrollSpeed; … … 382 382 scrolled = this.document.scrollTop( this.document.scrollTop() - o.scrollSpeed ); 383 383 } else if ( this.window.height() - ( event.pageY - this.document.scrollTop() ) < 384 384 o.scrollSensitivity ) { 385 385 scrolled = this.document.scrollTop( this.document.scrollTop() + o.scrollSpeed ); 386 386 } … … 391 391 ); 392 392 } else if ( this.window.width() - ( event.pageX - this.document.scrollLeft() ) < 393 393 o.scrollSensitivity ) { 394 394 scrolled = this.document.scrollLeft( 395 395 this.document.scrollLeft() + o.scrollSpeed … … 418 418 } 419 419 420 //Do scrolling 421 if ( o.scroll ) { 422 if ( this._scroll( event ) !== false ) { 423 424 //Update item positions used in position checks 425 this._refreshItemPositions( true ); 426 427 if ( $.ui.ddmanager && !o.dropBehaviour ) { 428 $.ui.ddmanager.prepareOffsets( this, event ); 429 } 430 } 431 } 432 433 this.dragDirection = { 434 vertical: this._getDragVerticalDirection(), 435 horizontal: this._getDragHorizontalDirection() 436 }; 437 438 //Rearrange 439 for ( i = this.items.length - 1; i >= 0; i-- ) { 440 441 //Cache variables and intersection, continue if no intersection 442 item = this.items[ i ]; 443 itemElement = item.item[ 0 ]; 444 intersection = this._intersectsWithPointer( item ); 445 if ( !intersection ) { 446 continue; 447 } 448 449 // Only put the placeholder inside the current Container, skip all 450 // items from other containers. This works because when moving 451 // an item from one container to another the 452 // currentContainer is switched before the placeholder is moved. 453 // 454 // Without this, moving items in "sub-sortables" can cause 455 // the placeholder to jitter between the outer and inner container. 456 if ( item.instance !== this.currentContainer ) { 457 continue; 458 } 459 460 // Cannot intersect with itself 461 // no useless actions that have been done before 462 // no action if the item moved is the parent of the item checked 463 if ( itemElement !== this.currentItem[ 0 ] && 464 this.placeholder[ intersection === 1 ? 465 "next" : "prev" ]()[ 0 ] !== itemElement && 466 !$.contains( this.placeholder[ 0 ], itemElement ) && 467 ( this.options.type === "semi-dynamic" ? 468 !$.contains( this.element[ 0 ], itemElement ) : 469 true 470 ) 471 ) { 472 473 this.direction = intersection === 1 ? "down" : "up"; 474 475 if ( this.options.tolerance === "pointer" || 476 this._intersectsWithSides( item ) ) { 477 this._rearrange( event, item ); 478 } else { 479 break; 480 } 481 482 this._trigger( "change", event, this._uiHash() ); 483 break; 484 } 485 } 486 420 487 //Post events to containers 421 488 this._contactContainers( event ); 422 423 if ( this.innermostContainer !== null ) {424 425 //Do scrolling426 if ( o.scroll ) {427 if ( this._scroll( event ) !== false ) {428 429 //Update item positions used in position checks430 this._refreshItemPositions( true );431 432 if ( $.ui.ddmanager && !o.dropBehaviour ) {433 $.ui.ddmanager.prepareOffsets( this, event );434 }435 }436 }437 438 this.dragDirection = {439 vertical: this._getDragVerticalDirection(),440 horizontal: this._getDragHorizontalDirection()441 };442 443 //Rearrange444 for ( i = this.items.length - 1; i >= 0; i-- ) {445 446 //Cache variables and intersection, continue if no intersection447 item = this.items[ i ];448 itemElement = item.item[ 0 ];449 intersection = this._intersectsWithPointer( item );450 if ( !intersection ) {451 continue;452 }453 454 // Only put the placeholder inside the current Container, skip all455 // items from other containers. This works because when moving456 // an item from one container to another the457 // currentContainer is switched before the placeholder is moved.458 //459 // Without this, moving items in "sub-sortables" can cause460 // the placeholder to jitter between the outer and inner container.461 if ( item.instance !== this.currentContainer ) {462 continue;463 }464 465 // Cannot intersect with itself466 // no useless actions that have been done before467 // no action if the item moved is the parent of the item checked468 if ( itemElement !== this.currentItem[ 0 ] &&469 this.placeholder[ intersection === 1 ?470 "next" : "prev" ]()[ 0 ] !== itemElement &&471 !$.contains( this.placeholder[ 0 ], itemElement ) &&472 ( this.options.type === "semi-dynamic" ?473 !$.contains( this.element[ 0 ], itemElement ) :474 true475 )476 ) {477 478 this.direction = intersection === 1 ? "down" : "up";479 480 if ( this.options.tolerance === "pointer" ||481 this._intersectsWithSides( item ) ) {482 this._rearrange( event, item );483 } else {484 break;485 }486 487 this._trigger( "change", event, this._uiHash() );488 break;489 }490 }491 }492 489 493 490 //Interconnect with droppables … … 524 521 animation.left = cur.left - this.offset.parent.left - this.margins.left + 525 522 ( this.offsetParent[ 0 ] === this.document[ 0 ].body ? 526 0 :527 this.offsetParent[ 0 ].scrollLeft523 0 : 524 this.offsetParent[ 0 ].scrollLeft 528 525 ); 529 526 } … … 531 528 animation.top = cur.top - this.offset.parent.top - this.margins.top + 532 529 ( this.offsetParent[ 0 ] === this.document[ 0 ].body ? 533 0 :534 this.offsetParent[ 0 ].scrollTop530 0 : 531 this.offsetParent[ 0 ].scrollTop 535 532 ); 536 533 } … … 583 580 } 584 581 if ( this.options.helper !== "original" && this.helper && 585 582 this.helper[ 0 ].parentNode ) { 586 583 this.helper.remove(); 587 584 } … … 859 856 //We ignore calculating positions of all connected containers when we're not over them 860 857 if ( this.currentContainer && item.instance !== this.currentContainer && 861 858 item.item[ 0 ] !== this.currentItem[ 0 ] ) { 862 859 continue; 863 860 } … … 885 882 false; 886 883 887 if ( this.innermostContainer !== null ) { 888 this._refreshItemPositions( fast ); 889 } 884 // This has to be redone because due to the item being moved out/into the offsetParent, 885 // the offsetParent's position will change 886 if ( this.offsetParent && this.helper ) { 887 this.offset.parent = this._getParentOffset(); 888 } 889 890 this._refreshItemPositions( fast ); 890 891 891 892 var i, p; … … 922 923 923 924 that._addClass( element, "ui-sortable-placeholder", 924 925 className || that.currentItem[ 0 ].className ) 925 926 ._removeClass( element, "ui-sortable-helper" ); 926 927 … … 960 961 // is true. 961 962 if ( !p.height() || ( o.forcePlaceholderSize && 962 963 ( nodeName === "tbody" || nodeName === "tr" ) ) ) { 963 964 p.height( 964 965 that.currentItem.innerHeight() - … … 1015 1016 // If we've already found a container and it's more "inner" than this, then continue 1016 1017 if ( innermostContainer && 1017 1018 1019 1018 $.contains( 1019 this.containers[ i ].element[ 0 ], 1020 innermostContainer.element[ 0 ] ) ) { 1020 1021 continue; 1021 1022 } … … 1034 1035 1035 1036 } 1036 1037 this.innermostContainer = innermostContainer;1038 1037 1039 1038 // If no intersecting containers found, return … … 1061 1060 for ( j = this.items.length - 1; j >= 0; j-- ) { 1062 1061 if ( !$.contains( 1063 1062 this.containers[ innermostIndex ].element[ 0 ], this.items[ j ].item[ 0 ] ) 1064 1063 ) { 1065 1064 continue; … … 1112 1111 //Update overflowOffset 1113 1112 if ( this.scrollParent[ 0 ] !== this.document[ 0 ] && 1114 1113 this.scrollParent[ 0 ].tagName !== "HTML" ) { 1115 1114 this.overflowOffset = this.scrollParent.offset(); 1116 1115 } … … 1190 1189 // offset of the parent, and never recalculated upon drag 1191 1190 if ( this.cssPosition === "absolute" && this.scrollParent[ 0 ] !== this.document[ 0 ] && 1192 1191 $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) { 1193 1192 po.left += this.scrollParent.scrollLeft(); 1194 1193 po.top += this.scrollParent.scrollTop(); … … 1198 1197 // information with an ugly IE fix 1199 1198 if ( this.offsetParent[ 0 ] === this.document[ 0 ].body || 1200 1199 ( this.offsetParent[ 0 ].tagName && 1201 1200 this.offsetParent[ 0 ].tagName.toLowerCase() === "html" && $.ui.ie ) ) { 1202 1201 po = { top: 0, left: 0 }; … … 1255 1254 this.window.width() - this.helperProportions.width - this.margins.left, 1256 1255 ( o.containment === "document" ? 1257 ( this.document.height() || document.body.parentNode.scrollHeight ) :1258 this.window.height() || this.document[ 0 ].body.parentNode.scrollHeight1256 ( this.document.height() || document.body.parentNode.scrollHeight ) : 1257 this.window.height() || this.document[ 0 ].body.parentNode.scrollHeight 1259 1258 ) - this.helperProportions.height - this.margins.top 1260 1259 ]; … … 1268 1267 this.containment = [ 1269 1268 co.left + ( parseInt( $( ce ).css( "borderLeftWidth" ), 10 ) || 0 ) + 1270 1269 ( parseInt( $( ce ).css( "paddingLeft" ), 10 ) || 0 ) - this.margins.left, 1271 1270 co.top + ( parseInt( $( ce ).css( "borderTopWidth" ), 10 ) || 0 ) + 1272 1271 ( parseInt( $( ce ).css( "paddingTop" ), 10 ) || 0 ) - this.margins.top, 1273 1272 co.left + ( over ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) - 1274 1275 1276 1273 ( parseInt( $( ce ).css( "borderLeftWidth" ), 10 ) || 0 ) - 1274 ( parseInt( $( ce ).css( "paddingRight" ), 10 ) || 0 ) - 1275 this.helperProportions.width - this.margins.left, 1277 1276 co.top + ( over ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) - 1278 1279 1280 1277 ( parseInt( $( ce ).css( "borderTopWidth" ), 10 ) || 0 ) - 1278 ( parseInt( $( ce ).css( "paddingBottom" ), 10 ) || 0 ) - 1279 this.helperProportions.height - this.margins.top 1281 1280 ]; 1282 1281 } … … 1291 1290 var mod = d === "absolute" ? 1 : -1, 1292 1291 scroll = this.cssPosition === "absolute" && 1293 1292 !( this.scrollParent[ 0 ] !== this.document[ 0 ] && 1294 1293 $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ? 1295 1296 1294 this.offsetParent : 1295 this.scrollParent, 1297 1296 scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName ); 1298 1297 … … 1324 1323 ( ( this.cssPosition === "fixed" ? 1325 1324 -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : 1326 scroll.scrollLeft() ) * mod )1325 scroll.scrollLeft() ) * mod ) 1327 1326 ) 1328 1327 }; … … 1337 1336 pageY = event.pageY, 1338 1337 scroll = this.cssPosition === "absolute" && 1339 1338 !( this.scrollParent[ 0 ] !== this.document[ 0 ] && 1340 1339 $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) ? 1341 1342 1343 1340 this.offsetParent : 1341 this.scrollParent, 1342 scrollIsRootNode = ( /(html|body)/i ).test( scroll[ 0 ].tagName ); 1344 1343 1345 1344 // This is another very weird special case that only happens for relative elements: … … 1348 1347 // we have to refresh the relative offset during the scroll so there are no jumps 1349 1348 if ( this.cssPosition === "relative" && !( this.scrollParent[ 0 ] !== this.document[ 0 ] && 1350 1349 this.scrollParent[ 0 ] !== this.offsetParent[ 0 ] ) ) { 1351 1350 this.offset.relative = this._getRelativeOffset(); 1352 1351 } … … 1380 1379 ( ( top - this.offset.click.top >= this.containment[ 1 ] && 1381 1380 top - this.offset.click.top <= this.containment[ 3 ] ) ? 1382 1383 1384 1385 1381 top : 1382 ( ( top - this.offset.click.top >= this.containment[ 1 ] ) ? 1383 top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) : 1384 top; 1386 1385 1387 1386 left = this.originalPageX + Math.round( ( pageX - this.originalPageX ) / … … 1390 1389 ( ( left - this.offset.click.left >= this.containment[ 0 ] && 1391 1390 left - this.offset.click.left <= this.containment[ 2 ] ) ? 1392 1393 1394 1395 1391 left : 1392 ( ( left - this.offset.click.left >= this.containment[ 0 ] ) ? 1393 left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) : 1394 left; 1396 1395 } 1397 1396 … … 1500 1499 } 1501 1500 if ( ( this.fromOutside || 1502 1503 1504 1501 this.domPosition.prev !== 1502 this.currentItem.prev().not( ".ui-sortable-helper" )[ 0 ] || 1503 this.domPosition.parent !== this.currentItem.parent()[ 0 ] ) && !noPropagation ) { 1505 1504 1506 1505 // Trigger update callback if the DOM position has changed -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/spinner.js
r51897 r52665 1 1 /*! 2 * jQuery UI Spinner 1.13. 02 * jQuery UI Spinner 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 48 48 49 49 $.widget( "ui.spinner", { 50 version: "1.13. 0",50 version: "1.13.1", 51 51 defaultElement: "<input>", 52 52 widgetEventPrefix: "spin", … … 235 235 .parent() 236 236 237 238 239 240 237 // Add buttons 238 .append( 239 "<a></a><a></a>" 240 ); 241 241 }, 242 242 … … 276 276 // unless the wrapper has an explicit height 277 277 if ( this.buttons.height() > Math.ceil( this.uiSpinner.height() * 0.5 ) && 278 278 this.uiSpinner.height() > 0 ) { 279 279 this.uiSpinner.height( this.uiSpinner.height() ); 280 280 } … … 286 286 287 287 switch ( event.keyCode ) { 288 case keyCode.UP:289 this._repeat( null, 1, event );290 return true;291 case keyCode.DOWN:292 this._repeat( null, -1, event );293 return true;294 case keyCode.PAGE_UP:295 this._repeat( null, options.page, event );296 return true;297 case keyCode.PAGE_DOWN:298 this._repeat( null, -options.page, event );299 return true;288 case keyCode.UP: 289 this._repeat( null, 1, event ); 290 return true; 291 case keyCode.DOWN: 292 this._repeat( null, -1, event ); 293 return true; 294 case keyCode.PAGE_UP: 295 this._repeat( null, options.page, event ); 296 return true; 297 case keyCode.PAGE_DOWN: 298 this._repeat( null, -options.page, event ); 299 return true; 300 300 } 301 301 … … 562 562 .parent() 563 563 564 565 564 // Add buttons 565 .append( this._buttonHtml() ); 566 566 }, 567 567 _uiSpinnerHtml: function() { -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/tabs.js
r51897 r52665 1 1 /*! 2 * jQuery UI Tabs 1.13. 02 * jQuery UI Tabs 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 36 36 37 37 $.widget( "ui.tabs", { 38 version: "1.13. 0",38 version: "1.13.1", 39 39 delay: 300, 40 40 options: { … … 177 177 178 178 switch ( event.keyCode ) { 179 case $.ui.keyCode.RIGHT:180 case $.ui.keyCode.DOWN:181 selectedIndex++;182 break;183 case $.ui.keyCode.UP:184 case $.ui.keyCode.LEFT:185 goingForward = false;186 selectedIndex--;187 break;188 case $.ui.keyCode.END:189 selectedIndex = this.anchors.length - 1;190 break;191 case $.ui.keyCode.HOME:192 selectedIndex = 0;193 break;194 case $.ui.keyCode.SPACE:195 196 // Activate only, no collapsing197 event.preventDefault();198 clearTimeout( this.activating );199 this._activate( selectedIndex );200 return;201 case $.ui.keyCode.ENTER:202 203 // Toggle (cancel delayed activation, allow collapsing)204 event.preventDefault();205 clearTimeout( this.activating );206 207 // Determine if we should collapse or activate208 this._activate( selectedIndex === this.options.active ? false : selectedIndex );209 return;210 default:211 return;179 case $.ui.keyCode.RIGHT: 180 case $.ui.keyCode.DOWN: 181 selectedIndex++; 182 break; 183 case $.ui.keyCode.UP: 184 case $.ui.keyCode.LEFT: 185 goingForward = false; 186 selectedIndex--; 187 break; 188 case $.ui.keyCode.END: 189 selectedIndex = this.anchors.length - 1; 190 break; 191 case $.ui.keyCode.HOME: 192 selectedIndex = 0; 193 break; 194 case $.ui.keyCode.SPACE: 195 196 // Activate only, no collapsing 197 event.preventDefault(); 198 clearTimeout( this.activating ); 199 this._activate( selectedIndex ); 200 return; 201 case $.ui.keyCode.ENTER: 202 203 // Toggle (cancel delayed activation, allow collapsing) 204 event.preventDefault(); 205 clearTimeout( this.activating ); 206 207 // Determine if we should collapse or activate 208 this._activate( selectedIndex === this.options.active ? false : selectedIndex ); 209 return; 210 default: 211 return; 212 212 } 213 213 … … 331 331 this.active = $(); 332 332 333 // was active, but active tab is gone333 // was active, but active tab is gone 334 334 } else if ( this.active.length && !$.contains( this.tablist[ 0 ], this.active[ 0 ] ) ) { 335 335 … … 339 339 this.active = $(); 340 340 341 // activate previous tab341 // activate previous tab 342 342 } else { 343 343 this._activate( this._findNextTab( Math.max( 0, options.active - 1 ), false ) ); 344 344 } 345 345 346 // was active, active tab still exists346 // was active, active tab still exists 347 347 } else { 348 348 … … 448 448 panel = that.element.find( that._sanitizeSelector( selector ) ); 449 449 450 // remote tab450 // remote tab 451 451 } else { 452 452 … … 606 606 if ( tab.hasClass( "ui-state-disabled" ) || 607 607 608 609 610 611 612 613 614 615 616 617 618 608 // tab is already loading 609 tab.hasClass( "ui-tabs-loading" ) || 610 611 // can't switch durning an animation 612 this.running || 613 614 // click on active header, but not collapsible 615 ( clickedIsActive && !options.collapsible ) || 616 617 // allow canceling activation 618 ( this._trigger( "beforeActivate", event, eventData ) === false ) ) { 619 619 return; 620 620 } -
branches/5.9/src/js/_enqueues/vendor/jquery/ui/tooltip.js
r51897 r52665 1 1 /*! 2 * jQuery UI Tooltip 1.13. 02 * jQuery UI Tooltip 1.13.1 3 3 * http://jqueryui.com 4 4 * … … 36 36 37 37 $.widget( "ui.tooltip", { 38 version: "1.13. 0",38 version: "1.13.1", 39 39 options: { 40 40 classes: { … … 218 218 219 219 if ( typeof contentOption === "string" || contentOption.nodeType || 220 220 contentOption.jquery ) { 221 221 return this._open( event, target, contentOption ); 222 222 } … … 349 349 if ( target[ 0 ] !== this.element[ 0 ] ) { 350 350 events.remove = function() { 351 this._removeTooltip( this._find( target ).tooltip ); 351 var targetElement = this._find( target ); 352 if ( targetElement ) { 353 this._removeTooltip( targetElement.tooltip ); 354 } 352 355 }; 353 356 } -
branches/5.9/src/wp-includes/script-loader.php
r52548 r52665 766 766 // the source files were flattened and included with some modifications for AMD loading. 767 767 // A notable change is that 'jquery-ui-core' now contains 'jquery-ui-position' and 'jquery-ui-widget'. 768 $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.13. 0', 1 );769 $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.13. 0', 1 );770 771 $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );772 $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );773 $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );774 $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );775 $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );776 $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );777 $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );778 $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );779 $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$suffix.js", array( 'jquery-effects-core', 'jquery-effects-scale' ), '1.13. 0', 1 );780 $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );781 $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$suffix.js", array( 'jquery-effects-core', 'jquery-effects-size' ), '1.13. 0', 1 );782 $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );783 $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );784 $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );785 $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.13. 0', 1 );768 $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.13.1', 1 ); 769 $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.13.1', 1 ); 770 771 $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 772 $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 773 $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 774 $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 775 $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 776 $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 777 $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 778 $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 779 $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$suffix.js", array( 'jquery-effects-core', 'jquery-effects-scale' ), '1.13.1', 1 ); 780 $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 781 $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$suffix.js", array( 'jquery-effects-core', 'jquery-effects-size' ), '1.13.1', 1 ); 782 $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 783 $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 784 $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 785 $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.13.1', 1 ); 786 786 787 787 // Widgets 788 $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.13. 0', 1 );789 $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.13. 0', 1 );790 $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$suffix.js", array( 'jquery-ui-core', 'jquery-ui-controlgroup', 'jquery-ui-checkboxradio' ), '1.13. 0', 1 );791 $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.13. 0', 1 );792 $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$suffix.js", array( 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button' ), '1.13. 0', 1 );793 $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.13. 0', 1 );794 $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.13. 0', 1 );795 $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.13. 0', 1 );796 $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.13. 0', 1 );797 $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.13. 0', 1 );798 $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.13. 0', 1 );799 $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.13. 0', 1 );800 $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.13. 0', 1 );788 $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); 789 $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.13.1', 1 ); 790 $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$suffix.js", array( 'jquery-ui-core', 'jquery-ui-controlgroup', 'jquery-ui-checkboxradio' ), '1.13.1', 1 ); 791 $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); 792 $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$suffix.js", array( 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button' ), '1.13.1', 1 ); 793 $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); 794 $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); 795 $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); 796 $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.13.1', 1 ); 797 $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 ); 798 $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.13.1', 1 ); 799 $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); 800 $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); 801 801 802 802 // New in 1.12.1 803 $scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.13. 0', 1 );804 $scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.13. 0', 1 );803 $scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); 804 $scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.13.1', 1 ); 805 805 806 806 // Interactions 807 $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.13. 0', 1 );808 $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.13. 0', 1 );809 $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.13. 0', 1 );810 $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.13. 0', 1 );811 $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.13. 0', 1 );807 $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 ); 808 $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.13.1', 1 ); 809 $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 ); 810 $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 ); 811 $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.1', 1 ); 812 812 813 813 // As of 1.12.1 `jquery-ui-position` and `jquery-ui-widget` are part of `jquery-ui-core`. 814 814 // Listed here for back-compat. 815 $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13. 0', 1 );816 $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13. 0', 1 );815 $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13.1', 1 ); 816 $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.1', 1 ); 817 817 818 818 // Strings for 'jquery-ui-autocomplete' live region messages.
Note: See TracChangeset
for help on using the changeset viewer.