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 2016/03/23 18:43:45 UTC

svn commit: r1736358 - /myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Author: lofwyr
Date: Wed Mar 23 17:43:45 2016
New Revision: 1736358

URL: http://svn.apache.org/viewvc?rev=1736358&view=rev
Log:
 TOBAGO-1543 Paradigm: The clientId shoud be rendered in the local root element in HTML
 - bugfix: defaultCommand

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1736358&r1=1736357&r2=1736358&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Wed Mar 23 17:43:45 2016
@@ -2288,7 +2288,7 @@ Tobago.Command.initEnter = function(elem
           return;
         }
       }
-      var id = target.id;
+      var id = target.name ? target.name : target.id;
       while (id != null) {
         var command = jQuery("[data-tobago-default='" + id + "']");
         if (command.size() > 0) {