myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r499956 - /myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Date Thu, 25 Jan 2007 20:40:34 GMT
Author: lofwyr
Date: Thu Jan 25 12:40:34 2007
New Revision: 499956

URL: http://svn.apache.org/viewvc?view=rev&rev=499956
Log:
fixing submitAction TOBAGO-102

Modified:
    myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?view=diff&rev=499956&r1=499955&r2=499956
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
(original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Thu Jan 25 12:40:34 2007
@@ -427,12 +427,13 @@
   //      LOG.debug("submit form with action: " + Tobago.action.value);
         Tobago.form.submit();
         Tobago.action.value = oldAction;
-        if (target || !transition) {
+        if (target) {
           Tobago.form.target = oldTarget;
+        }
+        if (target || !transition) {
           this.isSubmit = false;
-        } else {
-          Tobago.onBeforeUnload();
         }
+        Tobago.onBeforeUnload(transition, target);
       }
     }, true);
   },



Mime
View raw message