-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH Upgrade jquery to 1.12 #1353
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -221,17 +221,18 @@ $.entwine('ss', function($) { | |
*/ | ||
onadd: function() { | ||
// Browser detection | ||
if($.browser.msie && parseInt($.browser.version, 10) < 8) { | ||
$('.ss-loading-screen').append( | ||
'<p class="ss-loading-incompat-warning"><span class="notice">' + | ||
'Your browser is not compatible with the CMS interface. Please use Internet Explorer 8+, Google Chrome or Mozilla Firefox.' + | ||
'</span></p>' | ||
).css('z-index', $('.ss-loading-screen').css('z-index')+1); | ||
$('.loading-animation').remove(); | ||
|
||
this._super(); | ||
return; | ||
} | ||
// We'll need to replace this with some other library's implementation | ||
// if($.browser.msie && parseInt($.browser.version, 10) < 8) { | ||
// $('.ss-loading-screen').append( | ||
// '<p class="ss-loading-incompat-warning"><span class="notice">' + | ||
// 'Your browser is not compatible with the CMS interface. Please use Internet Explorer 8+, Google Chrome or Mozilla Firefox.' + | ||
// '</span></p>' | ||
// ).css('z-index', $('.ss-loading-screen').css('z-index')+1); | ||
// $('.loading-animation').remove(); | ||
|
||
// this._super(); | ||
// return; | ||
// } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will need to be replaced with some more appropriate third-party solution - for now I removed it because jquery doesn't have a browser property anymore. |
||
|
||
// Initialize layouts | ||
this.redraw(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -748,35 +748,6 @@ Sizzle is good for finding elements for a selector, but not so good for telling | |
/* src/jquery.focusinout.js */ | ||
|
||
(function($){ | ||
|
||
/** | ||
* Add focusin and focusout support to bind and live for browers other than IE. Designed to be usable in a delegated fashion (like $.live) | ||
* Copyright (c) 2007 Jörn Zaefferer | ||
*/ | ||
if ($.support.focusinBubbles === undefined) { | ||
$.support.focusinBubbles = !!($.browser.msie); | ||
} | ||
|
||
if (!$.support.focusinBubbles && !$.event.special.focusin) { | ||
// Emulate focusin and focusout by binding focus and blur in capturing mode | ||
$.each({focus: 'focusin', blur: 'focusout'}, function(original, fix){ | ||
$.event.special[fix] = { | ||
setup: function(){ | ||
if (!this.addEventListener) return false; | ||
this.addEventListener(original, $.event.special[fix].handler, true); | ||
}, | ||
teardown: function(){ | ||
if (!this.removeEventListener) return false; | ||
this.removeEventListener(original, $.event.special[fix].handler, true); | ||
}, | ||
handler: function(e){ | ||
arguments[0] = $.event.fix(e); | ||
arguments[0].type = fix; | ||
return $.event.handle.apply(this, arguments); | ||
} | ||
}; | ||
}); | ||
} | ||
Comment on lines
-751
to
-779
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
(function(){ | ||
//IE has some trouble with focusout with select and keyboard navigation | ||
|
@@ -1465,23 +1436,6 @@ catch (e) { | |
|
||
(function($) { | ||
|
||
/** Taken from jQuery 1.5.2 for backwards compatibility */ | ||
if ($.support.changeBubbles == undefined) { | ||
$.support.changeBubbles = true; | ||
|
||
var el = document.createElement("div"); | ||
eventName = "onchange"; | ||
|
||
if (el.attachEvent) { | ||
var isSupported = (eventName in el); | ||
if (!isSupported) { | ||
el.setAttribute(eventName, "return;"); | ||
isSupported = typeof el[eventName] === "function"; | ||
} | ||
|
||
$.support.changeBubbles = isSupported; | ||
} | ||
} | ||
Comment on lines
-1468
to
-1484
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
/* Return true if node b is the same as, or is a descendant of, node a */ | ||
if (document.compareDocumentPosition) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New tabs are now an empty object - there is no offset() function on them - so this just checks if there was an offset or not to avoid "that is undefined" error.