Created
October 11, 2011 16:50
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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