From 131d5b18e82ec7b96da573674c81be0c142a47c8 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Wed, 30 Dec 2009 11:06:17 -0300 Subject: [PATCH] Fix opera load issue. --- web2d/src/test/javascript/render/mootools.js | 4 +--- wise-webapp/src/main/webapp/js/mootools.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/web2d/src/test/javascript/render/mootools.js b/web2d/src/test/javascript/render/mootools.js index 38369cea..3a3803ba 100644 --- a/web2d/src/test/javascript/render/mootools.js +++ b/web2d/src/test/javascript/render/mootools.js @@ -1031,11 +1031,9 @@ window.onDomReady = function(fn) { }; window.extend({getWidth:function() { if (this.webkit419)return this.innerWidth; - if (this.opera)return document.body.clientWidth; return document.documentElement.clientWidth; },getHeight:function() { if (this.webkit419)return this.innerHeight; - if (this.opera)return document.body.clientHeight; return document.documentElement.clientHeight; },getScrollWidth:function() { if (this.ie)return Math.max(document.documentElement.offsetWidth, document.documentElement.scrollWidth); @@ -2168,4 +2166,4 @@ var Accordion = Fx.Elements.extend({options:{onActive:Class.empty,onBackground:C },showThisHideOpen:function(index) { return this.display(index); }}); -Fx.Accordion = Accordion; \ No newline at end of file +Fx.Accordion = Accordion; diff --git a/wise-webapp/src/main/webapp/js/mootools.js b/wise-webapp/src/main/webapp/js/mootools.js index f8bfa0be..909f4c92 100644 --- a/wise-webapp/src/main/webapp/js/mootools.js +++ b/wise-webapp/src/main/webapp/js/mootools.js @@ -3709,7 +3709,6 @@ window.extend({ getWidth: function() { if (this.webkit419) return this.innerWidth; - if (this.opera) return document.body.clientWidth; return document.documentElement.clientWidth; }, @@ -3720,7 +3719,6 @@ window.extend({ getHeight: function() { if (this.webkit419) return this.innerHeight; - if (this.opera) return document.body.clientHeight; return document.documentElement.clientHeight; }, @@ -7170,4 +7168,4 @@ var Accordion = Fx.Elements.extend({ }); -Fx.Accordion = Accordion; \ No newline at end of file +Fx.Accordion = Accordion;