kanban quick view key

This commit is contained in:
Yuri Kuznetsov
2022-08-24 10:14:54 +03:00
parent d98dfecef3
commit 71e39fa4fe
+31
View File
@@ -125,6 +125,37 @@ define('views/record/kanban', ['views/record/list'], function (Dep) {
this.initBackDrag(e.originalEvent);
},
/**
* @param {JQueryMouseEventObject} e
* @this module:views/record/kanban.Class
*/
'auxclick a.link': function (e) {
let isCombination = e.button === 1 && (e.ctrlKey || e.metaKey);
if (!isCombination) {
return;
}
let $target = $(e.currentTarget);
let id = $target.attr('data-id');
if (!id) {
return;
}
let $quickView = $target.parent().closest(`[data-id="${id}"]`)
.find(`ul.list-row-dropdown-menu[data-id="${id}"] a[data-action="quickView"]`);
if (!$quickView.length) {
return;
}
e.preventDefault();
e.stopPropagation();
this.actionQuickView({id: id});
},
},
showMore: true,