-
-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and remove the jquery-ui-rails gem, because it does not have the latest jquery-ui with security fixes. (cherry picked from commit 9ae02ef)
- Loading branch information
Showing
13 changed files
with
4,143 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
//= require jquery-ui/version | ||
|
||
/*! | ||
* jQuery UI :data 1.13.0 | ||
* http://jqueryui.com | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Released under the MIT license. | ||
* http://jquery.org/license | ||
*/ | ||
|
||
//>>label: :data Selector | ||
//>>group: Core | ||
//>>description: Selects elements which have data stored under the specified key. | ||
//>>docs: http://api.jqueryui.com/data-selector/ | ||
|
||
( function( factory ) { | ||
"use strict"; | ||
|
||
if ( typeof define === "function" && define.amd ) { | ||
|
||
// AMD. Register as an anonymous module. | ||
define( [ "jquery", "./version" ], factory ); | ||
} else { | ||
|
||
// Browser globals | ||
factory( jQuery ); | ||
} | ||
} )( function( $ ) { | ||
"use strict"; | ||
|
||
return $.extend( $.expr.pseudos, { | ||
data: $.expr.createPseudo ? | ||
$.expr.createPseudo( function( dataName ) { | ||
return function( elem ) { | ||
return !!$.data( elem, dataName ); | ||
}; | ||
} ) : | ||
|
||
// Support: jQuery <1.8 | ||
function( elem, i, match ) { | ||
return !!$.data( elem, match[ 3 ] ); | ||
} | ||
} ); | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//= require jquery-ui/version | ||
|
||
( function( factory ) { | ||
"use strict"; | ||
|
||
if ( typeof define === "function" && define.amd ) { | ||
|
||
// AMD. Register as an anonymous module. | ||
define( [ "jquery", "./version" ], factory ); | ||
} else { | ||
|
||
// Browser globals | ||
factory( jQuery ); | ||
} | ||
} )( function( $ ) { | ||
"use strict"; | ||
|
||
// This file is deprecated | ||
return $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() ); | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
//= require jquery-ui/version | ||
|
||
( function( factory ) { | ||
"use strict"; | ||
|
||
if ( typeof define === "function" && define.amd ) { | ||
|
||
// AMD. Register as an anonymous module. | ||
define( [ "jquery", "./version" ], factory ); | ||
} else { | ||
|
||
// Browser globals | ||
factory( jQuery ); | ||
} | ||
} )( function( $ ) { | ||
"use strict"; | ||
|
||
// $.ui.plugin is deprecated. Use $.widget() extensions instead. | ||
return $.ui.plugin = { | ||
add: function( module, option, set ) { | ||
var i, | ||
proto = $.ui[ module ].prototype; | ||
for ( i in set ) { | ||
proto.plugins[ i ] = proto.plugins[ i ] || []; | ||
proto.plugins[ i ].push( [ option, set[ i ] ] ); | ||
} | ||
}, | ||
call: function( instance, name, args, allowDisconnected ) { | ||
var i, | ||
set = instance.plugins[ name ]; | ||
|
||
if ( !set ) { | ||
return; | ||
} | ||
|
||
if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || | ||
instance.element[ 0 ].parentNode.nodeType === 11 ) ) { | ||
return; | ||
} | ||
|
||
for ( i = 0; i < set.length; i++ ) { | ||
if ( instance.options[ set[ i ][ 0 ] ] ) { | ||
set[ i ][ 1 ].apply( instance.element, args ); | ||
} | ||
} | ||
} | ||
}; | ||
|
||
} ); |
46 changes: 46 additions & 0 deletions
46
vendor/assets/javascripts/jquery-ui/safe-active-element.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
//= require jquery-ui/version | ||
|
||
( function( factory ) { | ||
"use strict"; | ||
|
||
if ( typeof define === "function" && define.amd ) { | ||
|
||
// AMD. Register as an anonymous module. | ||
define( [ "jquery", "./version" ], factory ); | ||
} else { | ||
|
||
// Browser globals | ||
factory( jQuery ); | ||
} | ||
} )( function( $ ) { | ||
"use strict"; | ||
|
||
return $.ui.safeActiveElement = function( document ) { | ||
var activeElement; | ||
|
||
// Support: IE 9 only | ||
// IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe> | ||
try { | ||
activeElement = document.activeElement; | ||
} catch ( error ) { | ||
activeElement = document.body; | ||
} | ||
|
||
// Support: IE 9 - 11 only | ||
// IE may return null instead of an element | ||
// Interestingly, this only seems to occur when NOT in an iframe | ||
if ( !activeElement ) { | ||
activeElement = document.body; | ||
} | ||
|
||
// Support: IE 11 only | ||
// IE11 returns a seemingly empty object in some cases when accessing | ||
// document.activeElement from an <iframe> | ||
if ( !activeElement.nodeName ) { | ||
activeElement = document.body; | ||
} | ||
|
||
return activeElement; | ||
}; | ||
|
||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//= require jquery-ui/version | ||
|
||
( function( factory ) { | ||
"use strict"; | ||
|
||
if ( typeof define === "function" && define.amd ) { | ||
|
||
// AMD. Register as an anonymous module. | ||
define( [ "jquery", "./version" ], factory ); | ||
} else { | ||
|
||
// Browser globals | ||
factory( jQuery ); | ||
} | ||
} )( function( $ ) { | ||
"use strict"; | ||
|
||
return $.ui.safeBlur = function( element ) { | ||
|
||
// Support: IE9 - 10 only | ||
// If the <body> is blurred, IE will switch windows, see #9420 | ||
if ( element && element.nodeName.toLowerCase() !== "body" ) { | ||
$( element ).trigger( "blur" ); | ||
} | ||
}; | ||
|
||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
//= require jquery-ui/version | ||
|
||
/*! | ||
* jQuery UI Scroll Parent 1.13.0 | ||
* http://jqueryui.com | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Released under the MIT license. | ||
* http://jquery.org/license | ||
*/ | ||
|
||
//>>label: scrollParent | ||
//>>group: Core | ||
//>>description: Get the closest ancestor element that is scrollable. | ||
//>>docs: http://api.jqueryui.com/scrollParent/ | ||
|
||
( function( factory ) { | ||
"use strict"; | ||
|
||
if ( typeof define === "function" && define.amd ) { | ||
|
||
// AMD. Register as an anonymous module. | ||
define( [ "jquery", "./version" ], factory ); | ||
} else { | ||
|
||
// Browser globals | ||
factory( jQuery ); | ||
} | ||
} )( function( $ ) { | ||
"use strict"; | ||
|
||
return $.fn.scrollParent = function( includeHidden ) { | ||
var position = this.css( "position" ), | ||
excludeStaticParent = position === "absolute", | ||
overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/, | ||
scrollParent = this.parents().filter( function() { | ||
var parent = $( this ); | ||
if ( excludeStaticParent && parent.css( "position" ) === "static" ) { | ||
return false; | ||
} | ||
return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + | ||
parent.css( "overflow-x" ) ); | ||
} ).eq( 0 ); | ||
|
||
return position === "fixed" || !scrollParent.length ? | ||
$( this[ 0 ].ownerDocument || document ) : | ||
scrollParent; | ||
}; | ||
|
||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
( function( factory ) { | ||
"use strict"; | ||
|
||
if ( typeof define === "function" && define.amd ) { | ||
|
||
// AMD. Register as an anonymous module. | ||
define( [ "jquery" ], factory ); | ||
} else { | ||
|
||
// Browser globals | ||
factory( jQuery ); | ||
} | ||
} )( function( $ ) { | ||
"use strict"; | ||
|
||
$.ui = $.ui || {}; | ||
|
||
return $.ui.version = "1.13.0"; | ||
|
||
} ); |
Oops, something went wrong.