[richfaces-svn-commits] JBoss Rich Faces SVN: r1142 - trunk/richfaces/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Jun 12 11:42:00 EDT 2007
Author: a.izobov
Date: 2007-06-12 11:42:00 -0400 (Tue, 12 Jun 2007)
New Revision: 1142
Modified:
trunk/richfaces/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-49 fixed
Modified: trunk/richfaces/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js
===================================================================
--- trunk/richfaces/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js 2007-06-12 15:39:45 UTC (rev 1141)
+++ trunk/richfaces/tabPanel/src/main/resources/org/richfaces/renderkit/html/scripts/tabPanel.js 2007-06-12 15:42:00 UTC (rev 1142)
@@ -153,11 +153,13 @@
if (lastActive && newActive) {
if (lastActive.ontableave && lastActive.ontableave != "") {
var func = new Function("leftTabName","enteredTabName",lastActive.ontableave);
- if (!func(lastActive.name,newActive.name)) return false;
+ var result = func(lastActive.name,newActive.name);
+ if (typeof(result) == 'boolean' && !result) return false;
}
if (newActive.ontabenter && newActive.ontabenter != "") {
var func = new Function("leftTabName","enteredTabName",newActive.ontabenter);
- return func(lastActive.name,newActive.name);
+ var result = func(lastActive.name,newActive.name);
+ if (typeof(result) == 'boolean' && !result) return false;
}
}
return true;
More information about the richfaces-svn-commits
mailing list