Refactoring

This commit is contained in:
Julia Radzhabova 2021-06-23 17:54:24 +03:00
parent 1eb0264d64
commit 877ac8f18d

View file

@ -297,7 +297,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectRangesDlg.template',
!rec.get('isNew') && this.deletedArr.push(rec.get('props'));
var index = store.indexOf(rec);
store.remove(rec);
(this.rangeList.length>0) && this.rangeList.selectByIndex(index);
(store.length>0) && this.rangeList.selectByIndex(index);
this.rangeList.scrollToRecord(this.rangeList.getSelectedRec());
}
this.updateButtons();