Skip to content

Instantly share code, notes, and snippets.

@dholmes
Created October 11, 2011 16:50
Show Gist options
  • Save dholmes/1278657 to your computer and use it in GitHub Desktop.
Save dholmes/1278657 to your computer and use it in GitHub Desktop.
Dojo function for running through a bunch of dojo checkboxes, setting their disabled flag. Focus forces repaint.
function setFormState(disabled){
dijit.registry.forEach(function(w){
if(w.name.search(/application/i) >= 0){
w.disabled = disabled;
w.focus();
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment