[hot] [fix] create new in link control

This commit is contained in:
Rushabh Mehta 2015-12-02 21:02:58 +05:30
parent 3e317b235e
commit 89b7bf55c2

View file

@ -1149,6 +1149,10 @@ frappe.ui.form.ControlLink = frappe.ui.form.ControlData.extend({
select: function(event, ui) {
me.autocomplete_open = false;
if(ui.item.action) {
ui.item.action.apply(me);
}
// prevent selection on tab
var TABKEY = 9;
if(event.keyCode === TABKEY) {