mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
new standard action to active the first link in a row, fixed numeric id's det Del shortcut
This commit is contained in:
parent
51c6e79475
commit
be57f2a37b
@ -618,6 +618,8 @@ class nextmatch_widget
|
|||||||
'print'=> 'print',
|
'print'=> 'print',
|
||||||
'copy' => 'copy',
|
'copy' => 'copy',
|
||||||
'move' => 'move',
|
'move' => 'move',
|
||||||
|
'cut' => 'cut',
|
||||||
|
'paste'=> 'editpaste',
|
||||||
);
|
);
|
||||||
|
|
||||||
$first_level = !$action_links; // add all first level actions
|
$first_level = !$action_links; // add all first level actions
|
||||||
@ -731,7 +733,7 @@ class nextmatch_widget
|
|||||||
}
|
}
|
||||||
|
|
||||||
// give all delete actions a delete shortcut
|
// give all delete actions a delete shortcut
|
||||||
if ($id == 'delete' && !isset($action['shortcut']))
|
if ($id === 'delete' && !isset($action['shortcut']))
|
||||||
{
|
{
|
||||||
$action['shortcut'] = egw_keymanager::shortcut(egw_keymanager::DELETE);
|
$action['shortcut'] = egw_keymanager::shortcut(egw_keymanager::DELETE);
|
||||||
}
|
}
|
||||||
|
@ -335,3 +335,23 @@ function nm_hide_popup(element, div_id)
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Activate/click first link in row
|
||||||
|
*/
|
||||||
|
function nm_activate_link(_action, _senders)
|
||||||
|
{
|
||||||
|
// $(_senders[0].iface.getDOMNode()).find('a:first').trigger('click'); not sure why this is NOT working
|
||||||
|
|
||||||
|
var a_href = $(_senders[0].iface.getDOMNode()).find('a:first');
|
||||||
|
|
||||||
|
if (typeof a_href != undefined)
|
||||||
|
{
|
||||||
|
var target = a_href.attr('target');
|
||||||
|
var href = a_href.attr('href');
|
||||||
|
if (target)
|
||||||
|
window.open(href,target);
|
||||||
|
else
|
||||||
|
window.location = href;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user