fix eslint

This commit is contained in:
Isaac Connor 2019-09-20 14:16:37 -04:00
parent cb194cc4d1
commit d7810bf9b3
1 changed files with 2 additions and 1 deletions

View File

@ -397,8 +397,9 @@ function save_layout(button) {
var form = button.form;
var name = form.elements['Name'].value;
if ( !name )
if ( !name ) {
name = form.elements['zmMontageLayout'].options[form.elements['zmMontageLayout'].selectedIndex].text;
}
if ( name=='Freeform' || name=='2 Wide' || name=='3 Wide' || name=='4 Wide' || name=='5 Wide' ) {
alert('You cannot edit the built in layouts. Please give the layout a new name.');