Selaa lähdekoodia

Fix for JS error in IE 8 (reported via the forum)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2558 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 vuotta sitten
vanhempi
commit
ce8534cbe4
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      js/utils.js

+ 2 - 2
js/utils.js

@@ -122,7 +122,7 @@ function ReloadSearchForm(divId, sClassName, sBaseClass, sContext)
     aSubmit = new Array();
     aSubmit = new Array();
 	if ( (oFormEvents != null) && (oFormEvents.submit != undefined))
 	if ( (oFormEvents != null) && (oFormEvents.submit != undefined))
 	{
 	{
-		for(index = 0; index < oFormEvents.submit.length; index++)
+		for(var index = 0; index < oFormEvents.submit.length; index++)
 		{
 		{
 			aSubmit [index ] = { data:oFormEvents.submit[index].data, namespace:oFormEvents.submit[index].namespace, handler:  oFormEvents.submit[index].handler};
 			aSubmit [index ] = { data:oFormEvents.submit[index].data, namespace:oFormEvents.submit[index].namespace, handler:  oFormEvents.submit[index].handler};
 		}
 		}
@@ -147,7 +147,7 @@ function ReloadSearchForm(divId, sClassName, sBaseClass, sContext)
 		   if (aSubmit.length > 0)
 		   if (aSubmit.length > 0)
 		   {
 		   {
 			    var oForm = $('#ds_'+divId+' form'); // Form was reloaded, recompute it
 			    var oForm = $('#ds_'+divId+' form'); // Form was reloaded, recompute it
-				for(index = 0; index < aSubmit.length; index++)
+				for(var index = 0; index < aSubmit.length; index++)
 				{
 				{
 					// Restore the previously bound submit handlers
 					// Restore the previously bound submit handlers
 					if (aSubmit[index].data != undefined)
 					if (aSubmit[index].data != undefined)