Changeset 7397

Show
Ignore:
Timestamp:
03/11/09 13:28:31 (17 months ago)
Author:
josowski
Message:

Updated the _tglFields method to also disable button type input fields in forms.

This should prevent the user from clicking on submit twice on a number of our ajax based forms.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • head/ambra/libs/js/src/main/scripts/ambra/formUtil.js

    r6338 r7397  
    103103  _tglFields: function(node, bEnable){ 
    104104    var n = bEnable? 'false' : 'true'; 
    105     dojo.query("input[type='text'],input[type='textarea'],input[type='radio'],input[type='checkbox'],select,textarea", node).forEach('item.disabled='+n+';item.locked='+n+';'); 
     105    dojo.query("input[type='text'],input[type='textarea'],input[type='radio'],input[type='checkbox'],input[type='button'],select,textarea", node).forEach('item.disabled='+n+';item.locked='+n+';'); 
    106106  }, 
    107107