Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/jquery
File: jquery-ui-1.13.2.js
/*! jQuery UI - v1.13.2 - 2022-07-14
[0] Fix | Delete
* http://jqueryui.com
[1] Fix | Delete
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
[2] Fix | Delete
* Copyright jQuery Foundation and other contributors; Licensed MIT */
[3] Fix | Delete
[4] Fix | Delete
( function( factory ) {
[5] Fix | Delete
"use strict";
[6] Fix | Delete
[7] Fix | Delete
if ( typeof define === "function" && define.amd ) {
[8] Fix | Delete
[9] Fix | Delete
// AMD. Register as an anonymous module.
[10] Fix | Delete
define( [ "jquery" ], factory );
[11] Fix | Delete
} else {
[12] Fix | Delete
[13] Fix | Delete
// Browser globals
[14] Fix | Delete
factory( jQuery );
[15] Fix | Delete
}
[16] Fix | Delete
} )( function( $ ) {
[17] Fix | Delete
"use strict";
[18] Fix | Delete
[19] Fix | Delete
$.ui = $.ui || {};
[20] Fix | Delete
[21] Fix | Delete
var version = $.ui.version = "1.13.2";
[22] Fix | Delete
[23] Fix | Delete
[24] Fix | Delete
/*!
[25] Fix | Delete
* jQuery UI Widget 1.13.2
[26] Fix | Delete
* http://jqueryui.com
[27] Fix | Delete
*
[28] Fix | Delete
* Copyright jQuery Foundation and other contributors
[29] Fix | Delete
* Released under the MIT license.
[30] Fix | Delete
* http://jquery.org/license
[31] Fix | Delete
*/
[32] Fix | Delete
[33] Fix | Delete
//>>label: Widget
[34] Fix | Delete
//>>group: Core
[35] Fix | Delete
//>>description: Provides a factory for creating stateful widgets with a common API.
[36] Fix | Delete
//>>docs: http://api.jqueryui.com/jQuery.widget/
[37] Fix | Delete
//>>demos: http://jqueryui.com/widget/
[38] Fix | Delete
[39] Fix | Delete
[40] Fix | Delete
var widgetUuid = 0;
[41] Fix | Delete
var widgetHasOwnProperty = Array.prototype.hasOwnProperty;
[42] Fix | Delete
var widgetSlice = Array.prototype.slice;
[43] Fix | Delete
[44] Fix | Delete
$.cleanData = ( function( orig ) {
[45] Fix | Delete
return function( elems ) {
[46] Fix | Delete
var events, elem, i;
[47] Fix | Delete
for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
[48] Fix | Delete
[49] Fix | Delete
// Only trigger remove when necessary to save time
[50] Fix | Delete
events = $._data( elem, "events" );
[51] Fix | Delete
if ( events && events.remove ) {
[52] Fix | Delete
$( elem ).triggerHandler( "remove" );
[53] Fix | Delete
}
[54] Fix | Delete
}
[55] Fix | Delete
orig( elems );
[56] Fix | Delete
};
[57] Fix | Delete
} )( $.cleanData );
[58] Fix | Delete
[59] Fix | Delete
$.widget = function( name, base, prototype ) {
[60] Fix | Delete
var existingConstructor, constructor, basePrototype;
[61] Fix | Delete
[62] Fix | Delete
// ProxiedPrototype allows the provided prototype to remain unmodified
[63] Fix | Delete
// so that it can be used as a mixin for multiple widgets (#8876)
[64] Fix | Delete
var proxiedPrototype = {};
[65] Fix | Delete
[66] Fix | Delete
var namespace = name.split( "." )[ 0 ];
[67] Fix | Delete
name = name.split( "." )[ 1 ];
[68] Fix | Delete
var fullName = namespace + "-" + name;
[69] Fix | Delete
[70] Fix | Delete
if ( !prototype ) {
[71] Fix | Delete
prototype = base;
[72] Fix | Delete
base = $.Widget;
[73] Fix | Delete
}
[74] Fix | Delete
[75] Fix | Delete
if ( Array.isArray( prototype ) ) {
[76] Fix | Delete
prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
[77] Fix | Delete
}
[78] Fix | Delete
[79] Fix | Delete
// Create selector for plugin
[80] Fix | Delete
$.expr.pseudos[ fullName.toLowerCase() ] = function( elem ) {
[81] Fix | Delete
return !!$.data( elem, fullName );
[82] Fix | Delete
};
[83] Fix | Delete
[84] Fix | Delete
$[ namespace ] = $[ namespace ] || {};
[85] Fix | Delete
existingConstructor = $[ namespace ][ name ];
[86] Fix | Delete
constructor = $[ namespace ][ name ] = function( options, element ) {
[87] Fix | Delete
[88] Fix | Delete
// Allow instantiation without "new" keyword
[89] Fix | Delete
if ( !this || !this._createWidget ) {
[90] Fix | Delete
return new constructor( options, element );
[91] Fix | Delete
}
[92] Fix | Delete
[93] Fix | Delete
// Allow instantiation without initializing for simple inheritance
[94] Fix | Delete
// must use "new" keyword (the code above always passes args)
[95] Fix | Delete
if ( arguments.length ) {
[96] Fix | Delete
this._createWidget( options, element );
[97] Fix | Delete
}
[98] Fix | Delete
};
[99] Fix | Delete
[100] Fix | Delete
// Extend with the existing constructor to carry over any static properties
[101] Fix | Delete
$.extend( constructor, existingConstructor, {
[102] Fix | Delete
version: prototype.version,
[103] Fix | Delete
[104] Fix | Delete
// Copy the object used to create the prototype in case we need to
[105] Fix | Delete
// redefine the widget later
[106] Fix | Delete
_proto: $.extend( {}, prototype ),
[107] Fix | Delete
[108] Fix | Delete
// Track widgets that inherit from this widget in case this widget is
[109] Fix | Delete
// redefined after a widget inherits from it
[110] Fix | Delete
_childConstructors: []
[111] Fix | Delete
} );
[112] Fix | Delete
[113] Fix | Delete
basePrototype = new base();
[114] Fix | Delete
[115] Fix | Delete
// We need to make the options hash a property directly on the new instance
[116] Fix | Delete
// otherwise we'll modify the options hash on the prototype that we're
[117] Fix | Delete
// inheriting from
[118] Fix | Delete
basePrototype.options = $.widget.extend( {}, basePrototype.options );
[119] Fix | Delete
$.each( prototype, function( prop, value ) {
[120] Fix | Delete
if ( typeof value !== "function" ) {
[121] Fix | Delete
proxiedPrototype[ prop ] = value;
[122] Fix | Delete
return;
[123] Fix | Delete
}
[124] Fix | Delete
proxiedPrototype[ prop ] = ( function() {
[125] Fix | Delete
function _super() {
[126] Fix | Delete
return base.prototype[ prop ].apply( this, arguments );
[127] Fix | Delete
}
[128] Fix | Delete
[129] Fix | Delete
function _superApply( args ) {
[130] Fix | Delete
return base.prototype[ prop ].apply( this, args );
[131] Fix | Delete
}
[132] Fix | Delete
[133] Fix | Delete
return function() {
[134] Fix | Delete
var __super = this._super;
[135] Fix | Delete
var __superApply = this._superApply;
[136] Fix | Delete
var returnValue;
[137] Fix | Delete
[138] Fix | Delete
this._super = _super;
[139] Fix | Delete
this._superApply = _superApply;
[140] Fix | Delete
[141] Fix | Delete
returnValue = value.apply( this, arguments );
[142] Fix | Delete
[143] Fix | Delete
this._super = __super;
[144] Fix | Delete
this._superApply = __superApply;
[145] Fix | Delete
[146] Fix | Delete
return returnValue;
[147] Fix | Delete
};
[148] Fix | Delete
} )();
[149] Fix | Delete
} );
[150] Fix | Delete
constructor.prototype = $.widget.extend( basePrototype, {
[151] Fix | Delete
[152] Fix | Delete
// TODO: remove support for widgetEventPrefix
[153] Fix | Delete
// always use the name + a colon as the prefix, e.g., draggable:start
[154] Fix | Delete
// don't prefix for widgets that aren't DOM-based
[155] Fix | Delete
widgetEventPrefix: existingConstructor ? ( basePrototype.widgetEventPrefix || name ) : name
[156] Fix | Delete
}, proxiedPrototype, {
[157] Fix | Delete
constructor: constructor,
[158] Fix | Delete
namespace: namespace,
[159] Fix | Delete
widgetName: name,
[160] Fix | Delete
widgetFullName: fullName
[161] Fix | Delete
} );
[162] Fix | Delete
[163] Fix | Delete
// If this widget is being redefined then we need to find all widgets that
[164] Fix | Delete
// are inheriting from it and redefine all of them so that they inherit from
[165] Fix | Delete
// the new version of this widget. We're essentially trying to replace one
[166] Fix | Delete
// level in the prototype chain.
[167] Fix | Delete
if ( existingConstructor ) {
[168] Fix | Delete
$.each( existingConstructor._childConstructors, function( i, child ) {
[169] Fix | Delete
var childPrototype = child.prototype;
[170] Fix | Delete
[171] Fix | Delete
// Redefine the child widget using the same prototype that was
[172] Fix | Delete
// originally used, but inherit from the new version of the base
[173] Fix | Delete
$.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor,
[174] Fix | Delete
child._proto );
[175] Fix | Delete
} );
[176] Fix | Delete
[177] Fix | Delete
// Remove the list of existing child constructors from the old constructor
[178] Fix | Delete
// so the old child constructors can be garbage collected
[179] Fix | Delete
delete existingConstructor._childConstructors;
[180] Fix | Delete
} else {
[181] Fix | Delete
base._childConstructors.push( constructor );
[182] Fix | Delete
}
[183] Fix | Delete
[184] Fix | Delete
$.widget.bridge( name, constructor );
[185] Fix | Delete
[186] Fix | Delete
return constructor;
[187] Fix | Delete
};
[188] Fix | Delete
[189] Fix | Delete
$.widget.extend = function( target ) {
[190] Fix | Delete
var input = widgetSlice.call( arguments, 1 );
[191] Fix | Delete
var inputIndex = 0;
[192] Fix | Delete
var inputLength = input.length;
[193] Fix | Delete
var key;
[194] Fix | Delete
var value;
[195] Fix | Delete
[196] Fix | Delete
for ( ; inputIndex < inputLength; inputIndex++ ) {
[197] Fix | Delete
for ( key in input[ inputIndex ] ) {
[198] Fix | Delete
value = input[ inputIndex ][ key ];
[199] Fix | Delete
if ( widgetHasOwnProperty.call( input[ inputIndex ], key ) && value !== undefined ) {
[200] Fix | Delete
[201] Fix | Delete
// Clone objects
[202] Fix | Delete
if ( $.isPlainObject( value ) ) {
[203] Fix | Delete
target[ key ] = $.isPlainObject( target[ key ] ) ?
[204] Fix | Delete
$.widget.extend( {}, target[ key ], value ) :
[205] Fix | Delete
[206] Fix | Delete
// Don't extend strings, arrays, etc. with objects
[207] Fix | Delete
$.widget.extend( {}, value );
[208] Fix | Delete
[209] Fix | Delete
// Copy everything else by reference
[210] Fix | Delete
} else {
[211] Fix | Delete
target[ key ] = value;
[212] Fix | Delete
}
[213] Fix | Delete
}
[214] Fix | Delete
}
[215] Fix | Delete
}
[216] Fix | Delete
return target;
[217] Fix | Delete
};
[218] Fix | Delete
[219] Fix | Delete
$.widget.bridge = function( name, object ) {
[220] Fix | Delete
var fullName = object.prototype.widgetFullName || name;
[221] Fix | Delete
$.fn[ name ] = function( options ) {
[222] Fix | Delete
var isMethodCall = typeof options === "string";
[223] Fix | Delete
var args = widgetSlice.call( arguments, 1 );
[224] Fix | Delete
var returnValue = this;
[225] Fix | Delete
[226] Fix | Delete
if ( isMethodCall ) {
[227] Fix | Delete
[228] Fix | Delete
// If this is an empty collection, we need to have the instance method
[229] Fix | Delete
// return undefined instead of the jQuery instance
[230] Fix | Delete
if ( !this.length && options === "instance" ) {
[231] Fix | Delete
returnValue = undefined;
[232] Fix | Delete
} else {
[233] Fix | Delete
this.each( function() {
[234] Fix | Delete
var methodValue;
[235] Fix | Delete
var instance = $.data( this, fullName );
[236] Fix | Delete
[237] Fix | Delete
if ( options === "instance" ) {
[238] Fix | Delete
returnValue = instance;
[239] Fix | Delete
return false;
[240] Fix | Delete
}
[241] Fix | Delete
[242] Fix | Delete
if ( !instance ) {
[243] Fix | Delete
return $.error( "cannot call methods on " + name +
[244] Fix | Delete
" prior to initialization; " +
[245] Fix | Delete
"attempted to call method '" + options + "'" );
[246] Fix | Delete
}
[247] Fix | Delete
[248] Fix | Delete
if ( typeof instance[ options ] !== "function" ||
[249] Fix | Delete
options.charAt( 0 ) === "_" ) {
[250] Fix | Delete
return $.error( "no such method '" + options + "' for " + name +
[251] Fix | Delete
" widget instance" );
[252] Fix | Delete
}
[253] Fix | Delete
[254] Fix | Delete
methodValue = instance[ options ].apply( instance, args );
[255] Fix | Delete
[256] Fix | Delete
if ( methodValue !== instance && methodValue !== undefined ) {
[257] Fix | Delete
returnValue = methodValue && methodValue.jquery ?
[258] Fix | Delete
returnValue.pushStack( methodValue.get() ) :
[259] Fix | Delete
methodValue;
[260] Fix | Delete
return false;
[261] Fix | Delete
}
[262] Fix | Delete
} );
[263] Fix | Delete
}
[264] Fix | Delete
} else {
[265] Fix | Delete
[266] Fix | Delete
// Allow multiple hashes to be passed on init
[267] Fix | Delete
if ( args.length ) {
[268] Fix | Delete
options = $.widget.extend.apply( null, [ options ].concat( args ) );
[269] Fix | Delete
}
[270] Fix | Delete
[271] Fix | Delete
this.each( function() {
[272] Fix | Delete
var instance = $.data( this, fullName );
[273] Fix | Delete
if ( instance ) {
[274] Fix | Delete
instance.option( options || {} );
[275] Fix | Delete
if ( instance._init ) {
[276] Fix | Delete
instance._init();
[277] Fix | Delete
}
[278] Fix | Delete
} else {
[279] Fix | Delete
$.data( this, fullName, new object( options, this ) );
[280] Fix | Delete
}
[281] Fix | Delete
} );
[282] Fix | Delete
}
[283] Fix | Delete
[284] Fix | Delete
return returnValue;
[285] Fix | Delete
};
[286] Fix | Delete
};
[287] Fix | Delete
[288] Fix | Delete
$.Widget = function( /* options, element */ ) {};
[289] Fix | Delete
$.Widget._childConstructors = [];
[290] Fix | Delete
[291] Fix | Delete
$.Widget.prototype = {
[292] Fix | Delete
widgetName: "widget",
[293] Fix | Delete
widgetEventPrefix: "",
[294] Fix | Delete
defaultElement: "<div>",
[295] Fix | Delete
[296] Fix | Delete
options: {
[297] Fix | Delete
classes: {},
[298] Fix | Delete
disabled: false,
[299] Fix | Delete
[300] Fix | Delete
// Callbacks
[301] Fix | Delete
create: null
[302] Fix | Delete
},
[303] Fix | Delete
[304] Fix | Delete
_createWidget: function( options, element ) {
[305] Fix | Delete
element = $( element || this.defaultElement || this )[ 0 ];
[306] Fix | Delete
this.element = $( element );
[307] Fix | Delete
this.uuid = widgetUuid++;
[308] Fix | Delete
this.eventNamespace = "." + this.widgetName + this.uuid;
[309] Fix | Delete
[310] Fix | Delete
this.bindings = $();
[311] Fix | Delete
this.hoverable = $();
[312] Fix | Delete
this.focusable = $();
[313] Fix | Delete
this.classesElementLookup = {};
[314] Fix | Delete
[315] Fix | Delete
if ( element !== this ) {
[316] Fix | Delete
$.data( element, this.widgetFullName, this );
[317] Fix | Delete
this._on( true, this.element, {
[318] Fix | Delete
remove: function( event ) {
[319] Fix | Delete
if ( event.target === element ) {
[320] Fix | Delete
this.destroy();
[321] Fix | Delete
}
[322] Fix | Delete
}
[323] Fix | Delete
} );
[324] Fix | Delete
this.document = $( element.style ?
[325] Fix | Delete
[326] Fix | Delete
// Element within the document
[327] Fix | Delete
element.ownerDocument :
[328] Fix | Delete
[329] Fix | Delete
// Element is window or document
[330] Fix | Delete
element.document || element );
[331] Fix | Delete
this.window = $( this.document[ 0 ].defaultView || this.document[ 0 ].parentWindow );
[332] Fix | Delete
}
[333] Fix | Delete
[334] Fix | Delete
this.options = $.widget.extend( {},
[335] Fix | Delete
this.options,
[336] Fix | Delete
this._getCreateOptions(),
[337] Fix | Delete
options );
[338] Fix | Delete
[339] Fix | Delete
this._create();
[340] Fix | Delete
[341] Fix | Delete
if ( this.options.disabled ) {
[342] Fix | Delete
this._setOptionDisabled( this.options.disabled );
[343] Fix | Delete
}
[344] Fix | Delete
[345] Fix | Delete
this._trigger( "create", null, this._getCreateEventData() );
[346] Fix | Delete
this._init();
[347] Fix | Delete
},
[348] Fix | Delete
[349] Fix | Delete
_getCreateOptions: function() {
[350] Fix | Delete
return {};
[351] Fix | Delete
},
[352] Fix | Delete
[353] Fix | Delete
_getCreateEventData: $.noop,
[354] Fix | Delete
[355] Fix | Delete
_create: $.noop,
[356] Fix | Delete
[357] Fix | Delete
_init: $.noop,
[358] Fix | Delete
[359] Fix | Delete
destroy: function() {
[360] Fix | Delete
var that = this;
[361] Fix | Delete
[362] Fix | Delete
this._destroy();
[363] Fix | Delete
$.each( this.classesElementLookup, function( key, value ) {
[364] Fix | Delete
that._removeClass( value, key );
[365] Fix | Delete
} );
[366] Fix | Delete
[367] Fix | Delete
// We can probably remove the unbind calls in 2.0
[368] Fix | Delete
// all event bindings should go through this._on()
[369] Fix | Delete
this.element
[370] Fix | Delete
.off( this.eventNamespace )
[371] Fix | Delete
.removeData( this.widgetFullName );
[372] Fix | Delete
this.widget()
[373] Fix | Delete
.off( this.eventNamespace )
[374] Fix | Delete
.removeAttr( "aria-disabled" );
[375] Fix | Delete
[376] Fix | Delete
// Clean up events and states
[377] Fix | Delete
this.bindings.off( this.eventNamespace );
[378] Fix | Delete
},
[379] Fix | Delete
[380] Fix | Delete
_destroy: $.noop,
[381] Fix | Delete
[382] Fix | Delete
widget: function() {
[383] Fix | Delete
return this.element;
[384] Fix | Delete
},
[385] Fix | Delete
[386] Fix | Delete
option: function( key, value ) {
[387] Fix | Delete
var options = key;
[388] Fix | Delete
var parts;
[389] Fix | Delete
var curOption;
[390] Fix | Delete
var i;
[391] Fix | Delete
[392] Fix | Delete
if ( arguments.length === 0 ) {
[393] Fix | Delete
[394] Fix | Delete
// Don't return a reference to the internal hash
[395] Fix | Delete
return $.widget.extend( {}, this.options );
[396] Fix | Delete
}
[397] Fix | Delete
[398] Fix | Delete
if ( typeof key === "string" ) {
[399] Fix | Delete
[400] Fix | Delete
// Handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
[401] Fix | Delete
options = {};
[402] Fix | Delete
parts = key.split( "." );
[403] Fix | Delete
key = parts.shift();
[404] Fix | Delete
if ( parts.length ) {
[405] Fix | Delete
curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
[406] Fix | Delete
for ( i = 0; i < parts.length - 1; i++ ) {
[407] Fix | Delete
curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
[408] Fix | Delete
curOption = curOption[ parts[ i ] ];
[409] Fix | Delete
}
[410] Fix | Delete
key = parts.pop();
[411] Fix | Delete
if ( arguments.length === 1 ) {
[412] Fix | Delete
return curOption[ key ] === undefined ? null : curOption[ key ];
[413] Fix | Delete
}
[414] Fix | Delete
curOption[ key ] = value;
[415] Fix | Delete
} else {
[416] Fix | Delete
if ( arguments.length === 1 ) {
[417] Fix | Delete
return this.options[ key ] === undefined ? null : this.options[ key ];
[418] Fix | Delete
}
[419] Fix | Delete
options[ key ] = value;
[420] Fix | Delete
}
[421] Fix | Delete
}
[422] Fix | Delete
[423] Fix | Delete
this._setOptions( options );
[424] Fix | Delete
[425] Fix | Delete
return this;
[426] Fix | Delete
},
[427] Fix | Delete
[428] Fix | Delete
_setOptions: function( options ) {
[429] Fix | Delete
var key;
[430] Fix | Delete
[431] Fix | Delete
for ( key in options ) {
[432] Fix | Delete
this._setOption( key, options[ key ] );
[433] Fix | Delete
}
[434] Fix | Delete
[435] Fix | Delete
return this;
[436] Fix | Delete
},
[437] Fix | Delete
[438] Fix | Delete
_setOption: function( key, value ) {
[439] Fix | Delete
if ( key === "classes" ) {
[440] Fix | Delete
this._setOptionClasses( value );
[441] Fix | Delete
}
[442] Fix | Delete
[443] Fix | Delete
this.options[ key ] = value;
[444] Fix | Delete
[445] Fix | Delete
if ( key === "disabled" ) {
[446] Fix | Delete
this._setOptionDisabled( value );
[447] Fix | Delete
}
[448] Fix | Delete
[449] Fix | Delete
return this;
[450] Fix | Delete
},
[451] Fix | Delete
[452] Fix | Delete
_setOptionClasses: function( value ) {
[453] Fix | Delete
var classKey, elements, currentElements;
[454] Fix | Delete
[455] Fix | Delete
for ( classKey in value ) {
[456] Fix | Delete
currentElements = this.classesElementLookup[ classKey ];
[457] Fix | Delete
if ( value[ classKey ] === this.options.classes[ classKey ] ||
[458] Fix | Delete
!currentElements ||
[459] Fix | Delete
!currentElements.length ) {
[460] Fix | Delete
continue;
[461] Fix | Delete
}
[462] Fix | Delete
[463] Fix | Delete
// We are doing this to create a new jQuery object because the _removeClass() call
[464] Fix | Delete
// on the next line is going to destroy the reference to the current elements being
[465] Fix | Delete
// tracked. We need to save a copy of this collection so that we can add the new classes
[466] Fix | Delete
// below.
[467] Fix | Delete
elements = $( currentElements.get() );
[468] Fix | Delete
this._removeClass( currentElements, classKey );
[469] Fix | Delete
[470] Fix | Delete
// We don't use _addClass() here, because that uses this.options.classes
[471] Fix | Delete
// for generating the string of classes. We want to use the value passed in from
[472] Fix | Delete
// _setOption(), this is the new value of the classes option which was passed to
[473] Fix | Delete
// _setOption(). We pass this value directly to _classes().
[474] Fix | Delete
elements.addClass( this._classes( {
[475] Fix | Delete
element: elements,
[476] Fix | Delete
keys: classKey,
[477] Fix | Delete
classes: value,
[478] Fix | Delete
add: true
[479] Fix | Delete
} ) );
[480] Fix | Delete
}
[481] Fix | Delete
},
[482] Fix | Delete
[483] Fix | Delete
_setOptionDisabled: function( value ) {
[484] Fix | Delete
this._toggleClass( this.widget(), this.widgetFullName + "-disabled", null, !!value );
[485] Fix | Delete
[486] Fix | Delete
// If the widget is becoming disabled, then nothing is interactive
[487] Fix | Delete
if ( value ) {
[488] Fix | Delete
this._removeClass( this.hoverable, null, "ui-state-hover" );
[489] Fix | Delete
this._removeClass( this.focusable, null, "ui-state-focus" );
[490] Fix | Delete
}
[491] Fix | Delete
},
[492] Fix | Delete
[493] Fix | Delete
enable: function() {
[494] Fix | Delete
return this._setOptions( { disabled: false } );
[495] Fix | Delete
},
[496] Fix | Delete
[497] Fix | Delete
disable: function() {
[498] Fix | Delete
return this._setOptions( { disabled: true } );
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function