Author: musachy
Date: Sun Jun  3 07:42:34 2007
New Revision: 543908

URL: http://svn.apache.org/viewvc?view=rev&rev=543908
Log:
Change order of parameters passed before/after selecting a tab

Modified:
    
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java
    
struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTabContainer.js

Modified: 
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java?view=diff&rev=543908&r1=543907&r2=543908
==============================================================================
--- 
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java
 (original)
+++ 
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java
 Sun Jun  3 07:42:34 2007
@@ -63,8 +63,8 @@
  * <p>Use notify topics to prevent a tab from being selected</p>
  * <pre>
  * &lt;script type="text/javascript"&gt;
- * dojo.event.topic.subscribe("/beforeSelect", function(tabContainer, tab, 
cancel){
- *     cancel.cancel = true;
+ * dojo.event.topic.subscribe("/beforeSelect", function(event, tab, 
tabContainer){
+ *     event.cancel = true;
  * });
  * &lt;/script&gt;
  * 

Modified: 
struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTabContainer.js
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTabContainer.js?view=diff&rev=543908&r1=543907&r2=543908
==============================================================================
--- 
struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTabContainer.js
 (original)
+++ 
struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/StrutsTabContainer.js
 Sun Jun  3 07:42:34 2007
@@ -45,7 +45,7 @@
         var self = this;
         dojo.lang.forEach(this.beforeSelectTabNotifyTopicsArray, 
function(topic) {
           try {
-            dojo.event.topic.publish(topic, self, tab, cancel);
+            dojo.event.topic.publish(topic, cancel, tab, self);
           } catch(ex){
             dojo.debug(ex);
           }
@@ -59,7 +59,7 @@
           var self = this;
           dojo.lang.forEach(this.afterSelectTabNotifyTopicsArray, 
function(topic) {
             try {
-              dojo.event.topic.publish(topic, self, tab, cancel);
+              dojo.event.topic.publish(topic, tab, self);
             } catch(ex){
               dojo.debug(ex);
             }


Reply via email to