Commit db4f65faaf59ddbba437ae3858a6a2a1e225bf3e
1 parent
cb97098d
[+] add function load_in_window which open a new window in HTML browser
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
web/load_content.anubis
| @@ -13,6 +13,15 @@ read xlib/web/web_action.anubis | @@ -13,6 +13,15 @@ read xlib/web/web_action.anubis | ||
| 13 | read xlib/web/js_tools.anubis | 13 | read xlib/web/js_tools.anubis |
| 14 | 14 | ||
| 15 | public define String | 15 | public define String |
| 16 | + load_in_window | ||
| 17 | + ( | ||
| 18 | + WEB_Action_Name web_action, | ||
| 19 | + List((String,String)) extra_args | ||
| 20 | + )= | ||
| 21 | + "window.open('"+format_web_action_name(web_action, extra_args)+"', '_blank', 'location=0');" | ||
| 22 | +. | ||
| 23 | + | ||
| 24 | +public define String | ||
| 16 | load_in_tab | 25 | load_in_tab |
| 17 | ( | 26 | ( |
| 18 | WEB_Action_Name web_action, | 27 | WEB_Action_Name web_action, |