diff --git a/internal/js/view_support.js b/internal/js/view_support.js index 2c24a0a..2df2168 100644 --- a/internal/js/view_support.js +++ b/internal/js/view_support.js @@ -85,9 +85,8 @@ function DrawImg() else $('.figcaption').hide() - // if we have faces, the enable the toggles, otherwise disable them - // and reset model select too - if( document.viewing.file_details.faces ) + // if we have faces, the enable the toggles, otherwise disable them and reset model select too + if( document.viewing.file_details.faces.length ) { $('#faces').attr('disabled', false) $('#distance').attr('disabled', false)