浏览代码

Make sure that we don't call OnFormCancel during a true submit.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2480 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 年之前
父节点
当前提交
7a29ea8e01
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/portalwebpage.class.inc.php

+ 1 - 1
application/portalwebpage.class.inc.php

@@ -728,7 +728,7 @@ EOF
 		$this->m_sWizardId = $sId;
 
 		// multipart... needed for file upload
-		$this->add("<form id=\"{$this->m_sWizardId}\" method=\"$sMethod\" enctype=\"multipart/form-data\">\n");
+		$this->add("<form id=\"{$this->m_sWizardId}\" method=\"$sMethod\" enctype=\"multipart/form-data\" onsubmit=\"window.bInSubmit = true;\">\n");
 
 		$aPreviousSteps = $this->GetWizardStepHistory();
 		if (utils::ReadParam('step_back', 0) == 1)