Skip to content

Instantly share code, notes, and snippets.

@jemmons
Created April 9, 2009 20:56
Show Gist options
  • Save jemmons/92731 to your computer and use it in GitHub Desktop.
Save jemmons/92731 to your computer and use it in GitHub Desktop.
function updateButtonState(){
browsed && enable(UPLOAD);
selected && enable(SELECT);
(browsed && selected) && enable(REPLACE);
function enable(i){
buttons.eq(i).removeAttr("disabled");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment