myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r599823 - /myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Date Fri, 30 Nov 2007 13:54:28 GMT
Author: bommel
Date: Fri Nov 30 05:54:26 2007
New Revision: 599823

URL: http://svn.apache.org/viewvc?rev=599823&view=rev
Log:
(TOBAGO-561) simplify javascript

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?rev=599823&r1=599822&r2=599823&view=diff
==============================================================================
--- 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
Fri Nov 30 05:54:26 2007
@@ -1486,10 +1486,7 @@
   },
 
   setDefaultAction: function(defaultActionId) {
-    var field = Tobago.element(Tobago.page.id + Tobago.SUB_COMPONENT_SEP + "form-action");
-    if (field) {
-      field.value = defaultActionId;
-    }
+    Tobago.action.value = defaultActionId;
   }
 };
 



Mime
View raw message