[DE PE SSE] Fix bug 55909

This commit is contained in:
JuliaSvinareva 2022-03-27 20:39:06 +03:00
parent f24977a10d
commit 58242acb91

View file

@ -397,13 +397,7 @@ define([
}); });
if (record) { if (record) {
if (this.delaySelect) {
setTimeout(function () {
record.set({selected: true}); record.set({selected: true});
}, 300);
} else {
record.set({selected: true});
}
} }
} else { } else {
if (record) if (record)
@ -607,15 +601,31 @@ define([
window._event = e; // for FireFox only window._event = e; // for FireFox only
if (this.showLast) this.selectRecord(record); if (this.showLast) {
if (!this.delaySelect) {
this.selectRecord(record);
} else {
_.each(this.store.where({selected: true}), function(rec){
rec.set({selected: false});
});
if (record) {
setTimeout(_.bind(function () {
record.set({selected: true});
this.trigger('item:click', this, view, record, e);
}, this), 300);
}
}
}
this.lastSelectedRec = null; this.lastSelectedRec = null;
var tip = view.$el.data('bs.tooltip'); var tip = view.$el.data('bs.tooltip');
if (tip) (tip.tip()).remove(); if (tip) (tip.tip()).remove();
if (!this.isSuspendEvents) { if (!this.isSuspendEvents) {
if (!this.delaySelect) {
this.trigger('item:click', this, view, record, e); this.trigger('item:click', this, view, record, e);
} }
}
}, },
onDblClickItem: function(view, record, e) { onDblClickItem: function(view, record, e) {