Use current app to get around missing etemplate run rights

This commit is contained in:
Nathan Gray 2013-11-13 23:57:49 +00:00
parent 0745db84bd
commit fb2c103cef
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ class etemplate_new extends etemplate_widget_template
var data = ' . json_encode($load_array) . ';
$j(".et2_container").not("#'.$dom_id.'").on("load", function() {
var et2 = new etemplate2(document.getElementById("'.$dom_id.'"), "etemplate_new::ajax_process_content");
var et2 = new etemplate2(document.getElementById("'.$dom_id.'"), "'.$currentapp.'.etemplate_new.ajax_process_content.etemplate");
et2.load(data.name,data.url,data.data);
});
})</script>';

View File

@ -178,7 +178,7 @@
}
else
{
var et2 = new etemplate2(node, "etemplate_new::ajax_process_content");
var et2 = new etemplate2(node, window.egw_appName+".etemplate_new.ajax_process_content.etemplate");
et2.load(data.name,data.url,data.data,callback);
}
}