ability to open nm_action=location in a given targetapp tab, plus documentation

This commit is contained in:
Ralf Becker 2012-01-07 23:02:29 +00:00
parent 92dc786ebc
commit 043b895a04
2 changed files with 9 additions and 1 deletions

View File

@ -575,10 +575,14 @@ class nextmatch_widget
* + 'submit' default action, sets nm[action], nm[selected] and nm[select_all] * + 'submit' default action, sets nm[action], nm[selected] and nm[select_all]
* + 'location' redirects / set location.href to 'url' attribute * + 'location' redirects / set location.href to 'url' attribute
* + 'popup' opens popup with url given in 'url' attribute * + 'popup' opens popup with url given in 'url' attribute
* + 'egw_open' call egw_open with egw_open parameters separated by dash (eg. "edit-infolog") and selected id's
* + 'open_popup' open div styled as popup contained in current form and named action.id+'_popup'
* - string 'url' url for location or popup * - string 'url' url for location or popup
* - string 'target' target for location or popup * - string 'target' target for location or popup
* - string 'targetapp' appname for location and jdots template
* - string 'width' for popup * - string 'width' for popup
* - string 'height' for popup * - string 'height' for popup
* - string 'egw_open' dash-separated parameters for nm_action=egw_open, eg. "edit-infolog"
* - string 'confirm' confirmation message * - string 'confirm' confirmation message
* - string 'confirm_multiple' confirmation message for multiple selected, defaults to 'confirm' * - string 'confirm_multiple' confirmation message for multiple selected, defaults to 'confirm'
* *

View File

@ -166,7 +166,11 @@ function nm_action(_action, _senders)
break; break;
case 'location': case 'location':
if(target) if (typeof _action.data.targetapp != 'undefined')
{
top.egw_appWindowOpen(_action.data.targetapp, url);
}
else if(target)
{ {
window.open(url, target); window.open(url, target);
} }