[DE] Bookmarks: select existing bookmark in the list when typing new name
This commit is contained in:
parent
298cc601c1
commit
c07b2e1db0
|
@ -287,6 +287,9 @@ define([
|
|||
|
||||
onNameChanging: function (input, value) {
|
||||
var exist = this.props.asc_HaveBookmark(value);
|
||||
if (exist)
|
||||
this.bookmarksList.selectRecord(this.bookmarksList.store.findWhere({value: value}));
|
||||
else
|
||||
this.bookmarksList.deselectAll();
|
||||
this.btnAdd.setDisabled(!this.props.asc_CheckNewBookmarkName(value) && !exist);
|
||||
this.btnGoto.setDisabled(!exist);
|
||||
|
|
Loading…
Reference in a new issue