Skip to content

Commit

Permalink
fix for debian bug #725840 Javascript errors in updateButtons functio…
Browse files Browse the repository at this point in the history
…n of filter.js

Also a slight optimisation using else's instead of continuing to evaluate after the true value has been set.
  • Loading branch information
connortechnology committed Nov 8, 2013
1 parent 2cd0d0b commit b8f0754
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions web/skins/classic/views/js/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ function updateButtons( element )
var canExecute = false;
if ( form.elements['autoArchive'].checked )
canExecute = true;
if ( form.elements['autoVideo'].checked )
else if ( form.elements['autoVideo'].checked )
canExecute = true;
if ( form.elements['autoUpload'].checked )
else if ( form.elements['autoUpload'] && form.elements['autoUpload'].checked )
canExecute = true;
if ( form.elements['autoEmail'].checked )
else if ( form.elements['autoEmail'].checked )
canExecute = true;
if ( form.elements['autoMessage'].checked )
else if ( form.elements['autoMessage'].checked )
canExecute = true;
if ( form.elements['autoExecute'].checked && form.elements['autoExecuteCmd'].value != '' )
else if ( form.elements['autoExecute'].checked && form.elements['autoExecuteCmd'].value != '' )
canExecute = true;
if ( form.elements['autoDelete'].checked )
else if ( form.elements['autoDelete'].checked )
canExecute = true;
form.elements['executeButton'].disabled = !canExecute;
}
Expand Down

0 comments on commit b8f0754

Please sign in to comment.