mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +01:00
Add singleClick attribute to action popup
This commit is contained in:
parent
bf1ed9a0d6
commit
99693d1ef6
@ -36,6 +36,11 @@ function egwPopupAction(_id, _handler, _caption, _icon, _onExecute, _allowOnMult
|
|||||||
action.checked = false;
|
action.checked = false;
|
||||||
action.confirm_mass_selection = null;
|
action.confirm_mass_selection = null;
|
||||||
action.shortcut = null;
|
action.shortcut = null;
|
||||||
|
action.singleClick = false;
|
||||||
|
|
||||||
|
action.set_singleClick = function(_value) {
|
||||||
|
action["singleClick"] = _value;
|
||||||
|
};
|
||||||
|
|
||||||
action.set_default = function(_value) {
|
action.set_default = function(_value) {
|
||||||
action["default"] = _value;
|
action["default"] = _value;
|
||||||
@ -175,7 +180,7 @@ function egwPopupActionImplementation()
|
|||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (egwIsMobile()) {
|
if (egwIsMobile() || _context.manager.getActionsByAttr('singleClick', true).length > 0) {
|
||||||
jQuery(_node).bind('click', defaultHandler);
|
jQuery(_node).bind('click', defaultHandler);
|
||||||
} else {
|
} else {
|
||||||
_node.ondblclick = defaultHandler;
|
_node.ondblclick = defaultHandler;
|
||||||
|
Loading…
Reference in New Issue
Block a user