Skip to content

Commit fa7ea68

Browse files
authored
Fix GedMarc#29 Remove IE Support
1 parent a810d43 commit fa7ea68

File tree

1 file changed

+13
-92
lines changed

1 file changed

+13
-92
lines changed

source/stable/jquery.layout_and_plugins.js

+13-92
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* @preserve
3-
* jquery.layout 1.8.5
4-
* $Date: 2020-08-22 $
5-
* $Rev: 1.8.5 $
3+
* jquery.layout 1.9.0
4+
* $Date: 2024-01-17 $
5+
* $Rev: 1.9.0 $
66
*
77
* Copyright (c) 2014 Kevin Dalman (http://jquery-dev.com)
88
* Based on work by Fabrizio Balliano (http://www.fabrizioballiano.net)
@@ -85,8 +85,8 @@
8585
* GENERIC $.layout METHODS - used by all layouts
8686
*/
8787
$.layout = {
88-
version: "1.8.4"
89-
, revision: 1.8004 // eg: ver 1.4.4 = rev 1.0404 - major(n+).minor(nn)+patch(nn+)
88+
version: "1.9.0"
89+
, revision: 1.9004 // eg: ver 1.4.4 = rev 1.0404 - major(n+).minor(nn)+patch(nn+)
9090

9191
// $.layout.browser REPLACES $.browser
9292
, browser: {} // set below
@@ -593,7 +593,7 @@
593593
, y = evt.pageY // evt.clientY ?
594594
;
595595
// if X & Y are < 0, probably means is over an open SELECT
596-
return ($.layout.browser.msie && x < 0 && y < 0) || ((x >= L && x <= R) && (y >= T && y <= B));
596+
return ((x >= L && x <= R) && (y >= T && y <= B));
597597
}
598598

599599
/**
@@ -664,22 +664,18 @@
664664
, m = /(chrome)[ \/]([\w.]+)/.exec(u)
665665
|| /(webkit)[ \/]([\w.]+)/.exec(u)
666666
|| /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(u)
667-
|| /(msie) ([\w.]+)/.exec(u)
668667
|| u.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(u)
669668
|| []
670669
, b = m[1] || ""
671670
, v = m[2] || 0
672-
, ie = b === "msie"
673671
, cm = document.compatMode
674672
, $s = $.support
675673
, bs = $s.boxSizing !== undefined ? $s.boxSizing : $s.boxSizingReliable
676-
, bm = !ie || !cm || cm === "CSS1Compat" || $s.boxModel || false
674+
, bm = !cm || cm === "CSS1Compat" || $s.boxModel || false
677675
, lb = $.layout.browser = {
678676
version: v
679677
, safari: b === "webkit" // webkit (NOT chrome) = safari
680678
, webkit: b === "chrome" // chrome = webkit
681-
, msie: ie
682-
, isIE6: ie && v == 6
683679
// ONLY IE reverts to old box-model - Note that compatMode was deprecated as of IE8
684680
, boxModel: bm
685681
, boxSizing: !!(typeof bs === "function" ? bs() : bs)
@@ -913,12 +909,12 @@
913909
// layout/global options - NOT pane-options
914910
layout: ("name,instanceKey,stateManagement,effects,inset,zIndexes,errors,"
915911
+ "zIndex,scrollToBookmarkOnLoad,showErrorMessages,maskPanesEarly,"
916-
+ "outset,resizeWithWindow,resizeWithWindowDelay,resizeWithWindowMaxDelay,"
912+
+ "outset,resizeWithWindow,resizeWithWindowDelay,resizeWithWindowMaxDelay,iframeFix,"
917913
+ "onresizeall,onresizeall_start,onresizeall_end,onload,onload_start,onload_end,onunload,onunload_start,onunload_end").split(",")
918914
// borderPanes: [ ALL options that are NOT specified as 'layout' ]
919915
// default.panes options that apply to the center-pane (most options apply _only_ to border-panes)
920916
, center: ("paneClass,contentSelector,contentIgnoreSelector,findNestedContent,applyDemoStyles,triggerEventsOnLoad,"
921-
+ "showOverflowOnHover,maskContents,maskObjects,liveContentResizing,"
917+
+ "showOverflowOnHover,maskContents,maskObjects,liveContentResizing,iframeFix,"
922918
+ "containerSelector,children,initChildren,resizeChildren,destroyChildren,"
923919
+ "onresize,onresize_start,onresize_end,onsizecontent,onsizecontent_start,onsizecontent_end").split(",")
924920
// options that MUST be specifically set 'per-pane' - CANNOT set in the panes (defaults) key
@@ -2042,29 +2038,14 @@
20422038
, margin: 0
20432039
});
20442040
// BODY
2045-
if (browser.isIE6) {
2046-
// IE6 CANNOT use the trick of setting absolute positioning on all 4 sides - must have 'height'
2047-
$N.css({
2048-
width: "100%"
2049-
, height: "100%"
2050-
, border: "none" // no border or padding allowed when using height = 100%
2051-
, padding: 0 // ditto
2052-
, margin: 0
2053-
, position: "relative"
2054-
});
2055-
// convert body padding to an inset option - the border cannot be measured in IE6!
2056-
if (!o.inset)
2057-
o.inset = elDims($N).inset;
2058-
} else { // use absolute positioning for BODY to allow borders & padding without overflow
2059-
$N.css({
2041+
$N.css({
20602042
width: "auto"
20612043
, height: "auto"
20622044
, margin: 0
20632045
, position: "absolute" // allows for border and padding on BODY
20642046
});
20652047
// apply edge-positioning created above
2066-
$N.css(o.outset);
2067-
}
2048+
$N.css(o.outset);
20682049
// set current layout-container dimensions
20692050
$.extend(sC, elDims($N, o.inset)); // passing inset means DO NOT include insetX values
20702051
} else {
@@ -2474,7 +2455,7 @@
24742455
// ELSE setAsOpen() - called later by initHandles()
24752456

24762457
// RESET visibility now - pane will appear IF display:block
2477-
$P.css("visibility", "visible");
2458+
// $P.css("visibility", "visible");
24782459

24792460
// check option for auto-handling of pop-ups & drop-downs
24802461
if (o.showOverflowOnHover)
@@ -3917,9 +3898,6 @@
39173898
// if pane is positioned 'off-screen', then DO NOT screw with it!
39183899
else if (pane == "east" && !$P.css("left").match(/\-99999/))
39193900
$P.css({left: "auto"});
3920-
// fix anti-aliasing in IE - only needed for animations that change opacity
3921-
if (browser.msie && o.fxOpacityFix && o.fxName_open != "slide" && $P.css("filter") && $P.css("opacity") == 1)
3922-
$P[0].style.removeAttribute('filter');
39233901
}
39243902
}
39253903

@@ -4444,7 +4422,7 @@
44444422
* TODO: Sounds like a job for $P.outerWidth( sC.innerWidth ) SETTER METHOD
44454423
*/
44464424
if (pane === "center") { // finished processing midPanes
4447-
var fix = browser.isIE6 || !browser.boxModel;
4425+
var fix = !browser.boxModel;
44484426
if ($Ps.north && (fix || state.north.tagName == "IFRAME"))
44494427
$Ps.north.css("width", cssW($Ps.north, sC.innerWidth));
44504428
if ($Ps.south && (fix || state.south.tagName == "IFRAME"))
@@ -5423,60 +5401,6 @@
54235401

54245402
)(jQuery);
54255403

5426-
5427-
/**
5428-
* Cookie plugin
5429-
*
5430-
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
5431-
* Dual licensed under the MIT and GPL licenses:
5432-
* http://www.opensource.org/licenses/mit-license.php
5433-
* http://www.gnu.org/licenses/gpl.html
5434-
*
5435-
*/
5436-
/*jQuery.cookie = function (name, value, options) {
5437-
if (typeof value != 'undefined') { // name and value given, set cookie
5438-
options = options || {};
5439-
if (value === null) {
5440-
value = '';
5441-
options.expires = -1;
5442-
}
5443-
var expires = '';
5444-
if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
5445-
var date;
5446-
if (typeof options.expires == 'number') {
5447-
date = new Date();
5448-
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
5449-
} else {
5450-
date = options.expires;
5451-
}
5452-
expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
5453-
}
5454-
// CAUTION: Needed to parenthesize options.path and options.domain
5455-
// in the following expressions, otherwise they evaluate to undefined
5456-
// in the packed version for some reason...
5457-
var path = options.path ? '; path=' + (options.path) : '';
5458-
var domain = options.domain ? '; domain=' + (options.domain) : '';
5459-
var secure = options.secure ? '; secure; samesite=' + options.sameSite : '';
5460-
var httpOnly = options.httpOnly ? '; HttpOnly' : '';
5461-
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
5462-
} else { // only name given, get cookie
5463-
var cookieValue = null;
5464-
if (document.cookie && document.cookie != '') {
5465-
var cookies = document.cookie.split(';');
5466-
for (var i = 0; i < cookies.length; i++) {
5467-
var cookie = String.prototype.trim(cookies[i]);
5468-
// Does this cookie string begin with the name we want?
5469-
if (cookie.substring(0, name.length + 1) == (name + '=')) {
5470-
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
5471-
break;
5472-
}
5473-
}
5474-
}
5475-
return cookieValue;
5476-
}
5477-
};
5478-
*/
5479-
54805404
/**
54815405
* @preserve jquery.layout.state 1.0
54825406
* $Date: 2011-07-16 08:00:00 (Sat, 16 July 2011) $
@@ -6090,9 +6014,6 @@
60906014
, v = b.version
60916015
, r, sW, cW
60926016
;
6093-
// we can ignore all browsers that fire window.resize event onZoom
6094-
if (!b.msie || v > 8)
6095-
return false; // don't need to track zoom
60966017
if (s.deviceXDPI && s.systemXDPI) // syntax compiler hack
60976018
return calc(s.deviceXDPI, s.systemXDPI);
60986019
// everything below is just for future reference!

0 commit comments

Comments
 (0)