need to check length of faces, not just it exists - it comes back as an empty array when no faces
This commit is contained in:
@@ -85,9 +85,8 @@ function DrawImg()
|
|||||||
else
|
else
|
||||||
$('.figcaption').hide()
|
$('.figcaption').hide()
|
||||||
|
|
||||||
// if we have faces, the enable the toggles, otherwise disable them
|
// if we have faces, the enable the toggles, otherwise disable them and reset model select too
|
||||||
// and reset model select too
|
if( document.viewing.file_details.faces.length )
|
||||||
if( document.viewing.file_details.faces )
|
|
||||||
{
|
{
|
||||||
$('#faces').attr('disabled', false)
|
$('#faces').attr('disabled', false)
|
||||||
$('#distance').attr('disabled', false)
|
$('#distance').attr('disabled', false)
|
||||||
|
|||||||
Reference in New Issue
Block a user