Use a fallback menuaction that won't give a permission error

This commit is contained in:
Nathan Gray 2013-11-26 22:34:32 +00:00
parent 0502f9326c
commit 092da6a706

View File

@ -78,7 +78,7 @@ function etemplate2(_container, _menuaction)
{ {
if (typeof _menuaction == "undefined") if (typeof _menuaction == "undefined")
{ {
_menuaction = "etemplate_new::ajax_process_content"; _menuaction = "home.etemplate_new.ajax_process_content.etemplate";
} }
// Copy the given parameters // Copy the given parameters
@ -724,7 +724,7 @@ function etemplate2_handle_load(_type, _response)
var node = document.getElementById(data.DOMNodeID); var node = document.getElementById(data.DOMNodeID);
if(node) if(node)
{ {
var et2 = new etemplate2(node, "etemplate_new::ajax_process_content"); var et2 = new etemplate2(node);
et2.load(data.name, data.url, data.data); et2.load(data.name, data.url, data.data);
return true; return true;
} }