浏览代码

Protects the onwership lock from a legitimate loss of the lock. No popup when leaving for real.

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

+ 2 - 0
application/cmdbabstract.class.inc.php

@@ -4065,6 +4065,8 @@ EOF
 		$oPage->add_ready_script(
 <<<EOF
 		window.setInterval(function() {
+			if (window.bInSubmit || window.bInCancel) return;
+			
 			$.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php', {operation: 'extend_lock', obj_class: $sJSClass, obj_key: $iKey, token: $sJSToken }, function(data) {
 				if (!data.status)
 				{