[DE] Fix changing autocorrect list
This commit is contained in:
parent
ff1e1fedfd
commit
8e47976d6d
|
@ -154,14 +154,14 @@ define([
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (_selectedItem) {
|
if (_selectedItem) {
|
||||||
|
me.mathList.scrollToRecord(_selectedItem, true);
|
||||||
|
if (_selectedItem.get('replaced') == value)
|
||||||
me.mathList.selectRecord(_selectedItem, true);
|
me.mathList.selectRecord(_selectedItem, true);
|
||||||
me.mathList.scrollToRecord(_selectedItem);
|
else
|
||||||
} else {
|
_selectedItem = null;
|
||||||
me.mathList.deselectAll();
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
me.mathList.deselectAll();
|
|
||||||
}
|
}
|
||||||
|
(!_selectedItem) && me.mathList.deselectAll();
|
||||||
me.updateControls(_selectedItem);
|
me.updateControls(_selectedItem);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -226,7 +226,7 @@ define([
|
||||||
this.btnEdit.setDisabled(!this.inputBy.getValue() || this.inputBy.getValue() === rec.get('by'));
|
this.btnEdit.setDisabled(!this.inputBy.getValue() || this.inputBy.getValue() === rec.get('by'));
|
||||||
} else {
|
} else {
|
||||||
this.btnDelete.setCaption(this.textDelete);
|
this.btnDelete.setCaption(this.textDelete);
|
||||||
this.btnDelete.setCaption(this.textDelete);
|
this.btnEdit.setDisabled(!this.inputBy.getValue());
|
||||||
}
|
}
|
||||||
this.btnDelete.setDisabled(!rec);
|
this.btnDelete.setDisabled(!rec);
|
||||||
this.btnEdit.setCaption(rec ? this.textEdit : this.textAdd);
|
this.btnEdit.setCaption(rec ? this.textEdit : this.textAdd);
|
||||||
|
|
Loading…
Reference in a new issue