Browse Source

Merge pull request #3056 from garonsky/issue-2387_give_hint_of_active_xml_4-REGRESSION

Regression - Fix for pull request gh-2943.

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 13 years ago
parent
commit
c247383d59
1 changed files with 9 additions and 0 deletions
  1. 9 0
      esp/files/scripts/configmgr/navtree.js

+ 9 - 0
esp/files/scripts/configmgr/navtree.js

@@ -2008,6 +2008,15 @@ function populateOpenEnvTable() {
             j++;
           }
 
+          if (!Array.prototype.indexof) {
+            Array.prototype.indexOf = function(obj, start) {
+              for (var i = (start || 0), j = this.length; i < j; i++) {
+                if (this[i] === obj) { return i; }
+              }
+              return -1;
+            }
+          }
+
           YAHOO.widget.DataTable.formatName = function(elLiner, oRecord, oColumn, oData) {
           if (staged_configuration.indexOf(oData) != -1)
            elLiner.innerHTML = "<font style=\"background-color:#004ADE;color:white\" title=\"Staged Configuration\">" + oData + "</font>";