fix not working full submits if etemplate is etemplate_old and app uses etemplate_new

This commit is contained in:
Ralf Becker 2013-07-30 12:21:19 +00:00
parent 018eec3dfd
commit a293de8614

View File

@ -77,7 +77,7 @@ function etemplate2(_container, _menuaction)
{ {
if (typeof _menuaction == "undefined") if (typeof _menuaction == "undefined")
{ {
_menuaction = "etemplate::ajax_process_content"; _menuaction = "etemplate_new::ajax_process_content";
} }
// Copy the given parameters // Copy the given parameters
@ -207,7 +207,7 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
} }
if(typeof app[appname] == "object") if(typeof app[appname] == "object")
{ {
app_callback = function(et2) {app[appname].et2_ready(et2)}; app_callback = function(et2) {app[appname].et2_ready(et2);};
} }
// Create the document fragment into which the HTML will be injected // Create the document fragment into which the HTML will be injected
@ -615,7 +615,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::ajax_process_content"); var et2 = new etemplate2(node, "etemplate_new::ajax_process_content");
et2.load(data.name, data.url, data.data); et2.load(data.name, data.url, data.data);
return true; return true;
} }