Make sure et2 apps don't get passed back to old etemplate

This commit is contained in:
Nathan Gray 2013-08-19 19:53:45 +00:00
parent 09f2ccbb73
commit 656560c376
2 changed files with 9 additions and 2 deletions

View File

@ -388,7 +388,7 @@ etemplate2.prototype.postSubmit = function()
if (canSubmit)
{
var form = jQuery("<form id='form' action='"+egw().webserverUrl +
"/etemplate/process_exec.php?menuaction=" + this.widgetContainer.egw().getAppName()+ "' method='POST'>");
"/etemplate/process_exec.php?menuaction=" + this.widgetContainer.egw().getAppName()+ "&ajax=true' method='POST'>");
var etemplate_id = jQuery(document.createElement("input"))
.attr("name",'etemplate_exec_id')

View File

@ -21,4 +21,11 @@ $GLOBALS['egw_info'] = array(
);
include('../header.inc.php');
ExecMethod('etemplate.etemplate.process_exec');
if($_GET['ajax'])
{
ExecMethod('etemplate.etemplate_new.process_exec');
}
else
{
ExecMethod('etemplate.etemplate.process_exec');
}