mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Update AdminLTE
- from 2.4.5 to 2.4.18 (cannot detect any issues) - set default scancycle for Apple Devices to 1
This commit is contained in:
40
front/lib/AdminLTE/bower_components/jquery-ui/ui/safe-active-element.js
vendored
Normal file
40
front/lib/AdminLTE/bower_components/jquery-ui/ui/safe-active-element.js
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
( function( factory ) {
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
define( [ "jquery", "./version" ], factory );
|
||||
} else {
|
||||
|
||||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
} ( function( $ ) {
|
||||
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;
|
||||
};
|
||||
|
||||
} ) );
|
||||
Reference in New Issue
Block a user