فهرست منبع

#775: preserve the open/closed status of the search form during auto-reload... by not reloading the form at all!

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2986 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 سال پیش
والد
کامیت
fdd8521dce
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      application/displayblock.class.inc.php

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

@@ -261,7 +261,7 @@ class DisplayBlock
 			 );
 			 );
 			 ');
 			 ');
 		}
 		}
-		if ($bAutoReload)
+		if (($bAutoReload) && ($this->m_sStyle != 'search')) // Search form do NOT auto-reload
 		{
 		{
 			$oPage->add_script('setInterval("ReloadBlock(\''.$sId.'\', \''.$this->m_sStyle.'\', \''.$sFilter.'\', \"'.$sExtraParams.'\")", '.$iReloadInterval.');');
 			$oPage->add_script('setInterval("ReloadBlock(\''.$sId.'\', \''.$this->m_sStyle.'\', \''.$sFilter.'\', \"'.$sExtraParams.'\")", '.$iReloadInterval.');');
 		}
 		}