diff --git a/etemplate/js/etemplate2.js b/etemplate/js/etemplate2.js index e1f117520c..7544c33258 100644 --- a/etemplate/js/etemplate2.js +++ b/etemplate/js/etemplate2.js @@ -388,7 +388,7 @@ etemplate2.prototype.postSubmit = function() if (canSubmit) { var form = jQuery("
"); + "/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') diff --git a/etemplate/process_exec.php b/etemplate/process_exec.php index bd91e78865..2abb19d338 100644 --- a/etemplate/process_exec.php +++ b/etemplate/process_exec.php @@ -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'); +}