diff --git a/js/wizardhelper.js b/js/wizardhelper.js index 4733f9487c..123a567cf5 100644 --- a/js/wizardhelper.js +++ b/js/wizardhelper.js @@ -1,4 +1,22 @@ // Wizard Helper JavaScript class to communicate with the WizardHelper PHP class + +if (!Array.prototype.indexOf) // Emulation of the indexOf function for IE and old browsers +{ + Array.prototype.indexOf = function(elt /*, from*/) + { + var len = this.length; + var from = Number(arguments[1]) || 0; + from = (from < 0) ? Math.ceil(from) : Math.floor(from); + + if (from < 0) from += len; + for (; from < len; from++) + { + if (from in this && this[from] === elt) return from; + } + return -1; + }; +} + function WizardHelper(sClass, sFormPrefix) { this.m_oData = { 'm_sClass' : '', @@ -69,6 +87,7 @@ function WizardHelper(sClass, sFormPrefix) this.UpdateFields = function () { + var aRefreshed = []; //console.log('** UpdateFields **'); // Set the full HTML for the input field for(i=0; i