Author: sevein
Date: Fri Aug 19 14:12:26 2011
New Revision: 9555

Log:
Render checkbox fields correctly

Modified:
   trunk/js/dialog.js

Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js  Fri Aug 19 13:19:23 2011        (r9554)
+++ trunk/js/dialog.js  Fri Aug 19 14:12:26 2011        (r9555)
@@ -206,6 +206,10 @@
             {
               return $('input[name=' + fname + ']:checked', 
thisDialog.table).val();
             }
+            else if (0 < this.fields[fname].length)
+            {
+              return '<input type="checkbox" disabled="disabled"' + 
(this.fields[fname][0].checked ? ' checked="checked"' : '') + ' />';
+            }
             else if (undefined !== this.fields[fname].value)
             {
               return this.fields[fname].value;

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to