new API method egw_framework::popup($link, $target="_blank", $popup="640x480") to open a popup independent of running a regular or a JSON request

This commit is contained in:
Ralf Becker
2014-06-18 13:57:15 +00:00
parent c0d85eb33e
commit ff00c695ca
2 changed files with 30 additions and 0 deletions

View File

@ -177,6 +177,14 @@
window.egw_LAB.script(include).wait(function()
{
// call egw.open_link, if popup attr specified
var egw_popup = egw_script.getAttribute('data-popup');
if (egw_popup)
{
egw_popup = JSON.parse(egw_popup) || [];
egw.open_link.apply(egw, egw_popup);
}
if(console.timelineEnd) console.timelineEnd("egw");
var end_time = (new Date).getTime();
var gen_time_div = $j('#divGenTime_'+window.egw_appName);