Fixes errors when opening Filters (issue #34)

This commit is contained in:
Andrew Bauer 2014-07-04 11:00:00 -05:00
parent 9163536219
commit 5aad658262
2 changed files with 8 additions and 8 deletions

View File

@ -9,13 +9,13 @@ function updateButtons( element )
var canExecute = false;
if ( form.elements['autoArchive'].checked )
canExecute = true;
else if ( form.elements['autoVideo'].checked )
else if ( typeof ZM_OPT_FFMPEG !== "undefined" && form.elements['autoVideo'].checked )
canExecute = true;
else if ( form.elements['autoUpload'] && form.elements['autoUpload'].checked )
else if ( typeof ZM_OPT_UPLOAD !== "undefined" && form.elements['autoUpload'].checked )
canExecute = true;
else if ( form.elements['autoEmail'].checked )
else if ( typeof ZM_OPT_EMAIL !== "undefined" && form.elements['autoEmail'].checked )
canExecute = true;
else if ( form.elements['autoMessage'].checked )
else if ( typeof ZM_OPT_MESSAGE !== "undefined" && form.elements['autoMessage'].checked )
canExecute = true;
else if ( form.elements['autoExecute'].checked && form.elements['autoExecuteCmd'].value != '' )
canExecute = true;

View File

@ -9,13 +9,13 @@ function updateButtons( element )
var canExecute = false;
if ( form.elements['autoArchive'].checked )
canExecute = true;
else if ( form.elements['autoVideo'].checked )
else if ( typeof ZM_OPT_FFMPEG !== "undefined" && form.elements['autoVideo'].checked )
canExecute = true;
else if ( form.elements['autoUpload'] && form.elements['autoUpload'].checked )
else if ( typeof ZM_OPT_UPLOAD !== "undefined" && form.elements['autoUpload'].checked )
canExecute = true;
else if ( form.elements['autoEmail'].checked )
else if ( typeof ZM_OPT_EMAIL !== "undefined" && form.elements['autoEmail'].checked )
canExecute = true;
else if ( form.elements['autoMessage'].checked )
else if ( typeof ZM_OPT_MESSAGE !== "undefined" && form.elements['autoMessage'].checked )
canExecute = true;
else if ( form.elements['autoExecute'].checked && form.elements['autoExecuteCmd'].value != '' )
canExecute = true;