[misc] Get rid of the "IE7" compatibility shim.

This commit is contained in:
Solomon Peachy 2012-12-26 09:23:49 -05:00
parent 944351742b
commit 64d05cda4b
15 changed files with 12 additions and 8227 deletions

View File

@ -8,6 +8,8 @@ For further information about Photo Organizer, see its web site at:
v2.38 (Unreleased)
[misc] Get rid of "IE7" compatibility library.
v2.37.1 (December 3, 2012)
[misc] Pretty image URLs now include an extension.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,21 +0,0 @@
The MIT License
Copyright (c) 2004-2010 Dean Edwards
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 B

View File

@ -1,2 +0,0 @@
/* IE7/IE8.js - copyright 2004-2008, Dean Edwards */
(function(){if(!IE7.loaded)return;CLASSES=/\sie7_class\d+/g;IE7.CSS.extend({elements:{},handlers:[],reset:function(){this.removeEventHandlers();var a=this.elements;for(var b in a)a[b].runtimeStyle.cssText="";this.elements={};var a=IE7.Rule.elements;for(var b in a){with(a[b])className=className.replace(CLASSES,"")}IE7.Rule.elements={}},reload:function(){this.rules=[];this.getInlineStyles();this.screen.load();if(this.print)this.print.load();this.refresh();this.trash()},addRecalc:function(b,c,d,e){this.base(b,c,function(a){d(a);IE7.CSS.elements[a.uniqueID]=a},e)},recalc:function(){this.reset();this.base()},addEventHandler:function(a,b,c){a.attachEvent(b,c);this.handlers.push(arguments)},removeEventHandlers:function(){var a;while(a=this.handlers.pop()){a[0].detachEvent(a[1],a[2])}},getInlineStyles:function(){var a=document.getElementsByTagName("style"),b;for(var c=a.length-1;(b=a[c]);c--){if(!b.disabled&&!b.ie7){var d=b.cssText||b.innerHTML;this.styles.push(d);b.cssText=d}}},trash:function(){var a=document.styleSheets,b,c;for(c=0;c<a.length;c++){b=a[c];if(!b.ie7&&!b.cssText){b.cssText=b.cssText}}this.base()},getText:function(a){return a.cssText||this.base(a)}});IE7.CSS.addEventHandler(window,"onunload",function(){IE7.CSS.removeEventHandlers()});IE7.Rule.elements={};IE7.Rule.prototype.extend({add:function(a){this.base(a);IE7.Rule.elements[a.uniqueID]=a}});if(IE7.PseudoElement){IE7.PseudoElement.hash={};IE7.PseudoElement.prototype.extend({create:function(a){var b=this.selector+":"+a.uniqueID;if(!IE7.PseudoElement.hash[b]){IE7.PseudoElement.hash[b]=true;this.base(a)}}})}IE7.HTML.extend({elements:{},addRecalc:function(b,c){this.base(b,function(a){if(!this.elements[a.uniqueID]){c(a);this.elements[a.uniqueID]=a}})}});document.recalc=function(a){if(IE7.CSS.screen){if(a)IE7.CSS.reload();IE7.recalc()}}})();

View File

@ -1,36 +0,0 @@
/* ---------------------------------------------------------------------
Squish some IE bugs!
Some of these bug fixes may have adverse effects so they are
not included in the standard library. Add your own if you want.
--------------------------------------------------------------------- */
// @NOTE: ie7Layout.boxSizing is the same as the "Holly Hack"
if (IE7.loaded && IE7.appVersion < 7) {
// "doubled margin" bug
// http://www.positioniseverything.net/explorer/doubled-margin.html
IE7.CSS.addFix(/(float\s*:\s*(left|right))/, "display:inline;$1");
// "peekaboo" bug
// http://www.positioniseverything.net/explorer/peekaboo.html
if (IE7.appVersion >= 6) IE7.CSS.addRecalc("float", "(left|right)", function(element) {
IE7.Layout.boxSizing(element.parentElement);
// "doubled margin" bug
element.style.display = "inline";
});
// "unscrollable content" bug
// http://www.positioniseverything.net/explorer/unscrollable.html
IE7.CSS.addRecalc("position", "absolute|fixed", function(element) {
if (element.offsetParent && element.offsetParent.currentStyle.position === "relative")
IE7.Layout.boxSizing(element.offsetParent);
});
}
//# // get rid of Microsoft's pesky image toolbar
//# document.write('<meta http-equiv="imagetoolbar" content="no">');

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 B

View File

@ -1,166 +0,0 @@
// =========================================================================
// ie7-recalc.js
// =========================================================================
(function() {
/* ---------------------------------------------------------------------
This allows refreshing of IE7 style rules. If you modify the DOM
you can update IE7 by calling document.recalc().
This should be the LAST module included.
--------------------------------------------------------------------- */
if (!IE7.loaded) return;
// remove all IE7 classes from an element
CLASSES = /\sie7_class\d+/g;
IE7.CSS.extend({
// store for elements that have style properties calculated
elements: {},
handlers: [],
// clear IE7 classes and styles
reset: function() {
this.removeEventHandlers();
// reset IE7 classes here
var elements = this.elements;
for (var i in elements) elements[i].runtimeStyle.cssText = "";
this.elements = {};
// reset runtimeStyle here
var elements = IE7.Rule.elements;
for (var i in elements) {
with (elements[i]) className = className.replace(CLASSES, "");
}
IE7.Rule.elements = {};
},
reload: function() {
this.rules = [];
this.getInlineStyles();
this.screen.load();
if (this.print) this.print.load();
this.refresh();
this.trash();
},
addRecalc: function(propertyName, test, handler, replacement) {
// call the ancestor method to add a wrapped recalc method
this.base(propertyName, test, function(element) {
// execute the original recalc method
handler(element);
// store a reference to this element so we can clear its style later
IE7.CSS.elements[element.uniqueID] = element;
}, replacement);
},
recalc: function() {
// clear IE7 styles and classes
this.reset();
// execute the ancestor method to perform recalculations
this.base();
},
addEventHandler: function(element, type, handler) {
element.attachEvent(type, handler);
// store the handler so it can be detached later
this.handlers.push(arguments);
},
removeEventHandlers: function() {
var handler;
while (handler = this.handlers.pop()) {
handler[0].detachEvent(handler[1], handler[2]);
}
},
getInlineStyles: function() {
// load inline styles
var styleSheets = document.getElementsByTagName("style"), styleSheet;
for (var i = styleSheets.length - 1; (styleSheet = styleSheets[i]); i--) {
if (!styleSheet.disabled && !styleSheet.ie7) {
var cssText = styleSheet.cssText || styleSheet.innerHTML;
this.styles.push(cssText);
styleSheet.cssText = cssText;
}
}
},
trash: function() {
// trash the old style sheets
var styleSheets = document.styleSheets, styleSheet, i;
for (i = 0; i < styleSheets.length; i++) {
styleSheet = styleSheets[i];
if (!styleSheet.ie7 && !styleSheet.cssText) {
styleSheet.cssText = styleSheet.cssText;
}
}
this.base();
},
getText: function(styleSheet) {
return styleSheet.cssText || this.base(styleSheet);
}
});
// remove event handlers (they eat memory)
IE7.CSS.addEventHandler(window, "onunload", function() {
IE7.CSS.removeEventHandlers();
});
// store all elements with an IE7 class assigned
IE7.Rule.elements = {};
IE7.Rule.prototype.extend({
add: function(element) {
// execute the ancestor "add" method
this.base(element);
// store a reference to this element so we can clear its classes later
IE7.Rule.elements[element.uniqueID] = element;
}
});
// store created pseudo elements
if (IE7.PseudoElement) {
IE7.PseudoElement.hash = {};
IE7.PseudoElement.prototype.extend({
create: function(target) {
var key = this.selector + ":" + target.uniqueID;
if (!IE7.PseudoElement.hash[key]) {
IE7.PseudoElement.hash[key] = true;
this.base(target);
}
}
});
}
IE7.HTML.extend({
elements: {},
addRecalc: function(selector, handler) {
// call the ancestor method to add a wrapped recalc method
this.base(selector, function(element) {
if (!this.elements[element.uniqueID]) {
// execute the original recalc method
handler(element);
// store a reference to this element so that
// it is not "fixed" again
this.elements[element.uniqueID] = element;
}
});
}
});
// allow refreshing of IE7 fixes
document.recalc = function(reload) {
if (IE7.CSS.screen) {
if (reload) IE7.CSS.reload();
IE7.recalc();
}
};
})();

View File

@ -1,36 +0,0 @@
/* ---------------------------------------------------------------------
Squish some IE bugs!
Some of these bug fixes may have adverse effects so they are
not included in the standard library. Add your own if you want.
--------------------------------------------------------------------- */
// @NOTE: ie7Layout.boxSizing is the same as the "Holly Hack"
if (IE7.loaded && IE7.appVersion < 7) {
// "doubled margin" bug
// http://www.positioniseverything.net/explorer/doubled-margin.html
IE7.CSS.addFix(/(float\s*:\s*(left|right))/, "display:inline;$1");
// "peekaboo" bug
// http://www.positioniseverything.net/explorer/peekaboo.html
if (IE7.appVersion >= 6) IE7.CSS.addRecalc("float", "(left|right)", function(element) {
IE7.Layout.boxSizing(element.parentElement);
// "doubled margin" bug
element.style.display = "inline";
});
// "unscrollable content" bug
// http://www.positioniseverything.net/explorer/unscrollable.html
IE7.CSS.addRecalc("position", "absolute|fixed", function(element) {
if (element.offsetParent && element.offsetParent.currentStyle.position === "relative")
IE7.Layout.boxSizing(element.offsetParent);
});
}
//# // get rid of Microsoft's pesky image toolbar
//# document.write('<meta http-equiv="imagetoolbar" content="no">');

View File

@ -517,16 +517,18 @@ function site_head($page_title, $title_b = "", $rss = "") {
if ($use_google_js) {
// print '<script src="http://www.google.com/jsapi"></script>';
// print '<script>google.load("jquery", "1.4.2");</script>';
// print '<script>google.load("jqueryui", "1.7.2")</script>';
print '<!-- compliance patch for microsoft browsers -->';
print '<!--[if lt IE 9]><script src="http://ie7-js.googlecode.com/svn/version/2.1(beta2)/IE9.js" type="text/javascript"></script><![endif]-->';
// print '<script>google.load("jqueryui", "1.8.6")</script>';
} else {
// print '<script src="javascript/jquery.js" type="text/javascript"></script>';
print '<!-- compliance patch for microsoft browsers -->';
print '<!--[if lt IE 9]><script src="ie7/IE9.js" type="text/javascript"></script><![endif]-->';
}
/*
print '<link type="text/css" href="javascript/css/ui-darkness/jquery-ui-1.8.6.custom.css" rel="Stylesheet" />';
print '<script type="text/javascript" src="javascript/jquery.js"></script>';
print '<script type="text/javascript" src="javascript/js/jquery-ui-1.8.6.custom.min.js"></script>';
*/
print "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=".$strings['formats_encoding']."\" />\n";
print '<meta name="google-site-verification" content="tCt1LDvGfoy-rqEF1fO5kY0N7ntHxl3tt23vH1CmOns" />';
print $thm_elem['shortcut_icon'];
print $thm_elem['stylesheets'];
@ -569,10 +571,12 @@ http://www.tnet.com/fun-web-products.php for further details.");
site_dump_errors();
/*
site_logo();
if ($po_options['show_ads'] != 'f') {
site_adv();
}
*/
print "<div id=\"content\">\n";
}