You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2007/01/25 21:40:34 UTC

svn commit: r499956 - /myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

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);
   },