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 2014/04/15 14:37:20 UTC

svn commit: r1587552 - /myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/test/in/id-and-fieldId.js

Author: lofwyr
Date: Tue Apr 15 12:37:20 2014
New Revision: 1587552

URL: http://svn.apache.org/r1587552
Log:
special selectBooleanCheckbox

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/test/in/id-and-fieldId.js

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/test/in/id-and-fieldId.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/test/in/id-and-fieldId.js?rev=1587552&r1=1587551&r2=1587552&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/test/in/id-and-fieldId.js (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/test/in/id-and-fieldId.js Tue Apr 15 12:37:20 2014
@@ -69,6 +69,10 @@ function fillIdDisplay(i, fieldClass) {
   var label = panel.children(".tobago-label");
   var field = panel.children(fieldClass);
 
+  if (fieldClass == ".tobago-selectBooleanCheckbox") { // special
+    field = field.find("input:first");
+  }
+
   panelIn.val(panel.attr("id"));
   labelIn.val(label.attr("id"));
   fieldIn.val(field.attr("id"));