Bläddra i källkod

HUE-53. Fix various IE compatibility issues.

Marcus McLaughlin 15 år sedan
förälder
incheckning
a015d06cb4

+ 16 - 1
desktop/core/static/js/Source/CCS/CCS.Desktop.Config.js

@@ -171,4 +171,19 @@ window.addEvent('domready', function(){
 	});
 });
 
-Selectors.Pseudo.widget = function() { return !! this.get("widget"); }; 
+Selectors.Pseudo.widget = function() { return this.get && (!! this.get("widget")); };
+
+//Although implement checks for a pre-existing implementation of the method, it has to be forced for IE to overwrite the MooTools version.
+//Thus, the IE check.
+if (Browser.Engine.trident) {
+        Array.implement({
+                forEach: function(fn, bind){
+                        var len = this.length;
+                        for (var i=0; i < len; i++) {
+                                if(i in this) fn.call(bind, this[i], i, this);
+                        }
+                }       
+        }, true);
+
+        Array.alias('forEach', 'each', true); 
+}

+ 1 - 1
desktop/core/static/js/Source/CCS/CCS.JBrowser.js

@@ -85,11 +85,11 @@ script: CCS.JBrowser.js
 			options.showNow = false;
 			this.parent(options);
 			this._setupHistory(path);
+			this._makeJFrame(path);
 			if (show) {
 				this.options.showNow = true;
 				this.show();
 			}
-			this._makeJFrame(path);
 			if (Browser.Engine.trident) {
 				$(this).setStyle('top', -111111111);
 			} else {

+ 1 - 1
ext/thirdparty/js/art-widgets.hash

@@ -1 +1 @@
-8ec4362bd182204cb859b858346473e5245c0a7a
+fb7d9d2c6e1afd63b57c6642b5d0f75b2fe330e6