Browse Source

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 years ago
parent
commit
1413282077
1 changed files with 2 additions and 0 deletions
  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)
 				{