portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smi...@apache.org
Subject svn commit: r584888 - in /portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed: common.js common.src.js
Date Mon, 15 Oct 2007 20:15:46 GMT
Author: smilek
Date: Mon Oct 15 13:15:45 2007
New Revision: 584888

URL: http://svn.apache.org/viewvc?rev=584888&view=rev
Log:
added try/catch block in stopEvent function for IE

Modified:
    portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/common.js
    portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/common.src.js

Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/common.js
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/common.js?rev=584888&r1=584887&r2=584888&view=diff
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/common.js (original)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/common.js Mon
Oct 15 13:15:45 2007
@@ -44,9 +44,13 @@
 _1.UAie6=true;
 }
 _1.stopEvent=function(_6){
+try{
 _6=_6||window.event;
 _6.cancelBubble=true;
 _6.returnValue=false;
+}
+catch(ex){
+}
 };
 _1._stopEvent=function(_7){
 jetspeed.stopEvent(_7);

Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/common.src.js
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/common.src.js?rev=584888&r1=584887&r2=584888&view=diff
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/common.src.js
(original)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/common.src.js
Mon Oct 15 13:15:45 2007
@@ -89,9 +89,13 @@
     
             jsObj.stopEvent = function(/*Event*/evt)
             {   // do no use in event connect
-                evt = evt || window.event;
-                evt.cancelBubble = true;
-                evt.returnValue = false;
+                try
+                {
+                    evt = evt || window.event;
+                    evt.cancelBubble = true;
+                    evt.returnValue = false;
+                }
+                catch(ex) { }
     	    };
     	    jsObj._stopEvent = function(/*Event*/evt)
             {   // use in event connect



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message