mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-22 22:11:19 +02:00
new standard action to active the first link in a row, fixed numeric id's det Del shortcut
This commit is contained in:
@@ -335,3 +335,23 @@ function nm_hide_popup(element, div_id)
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user