Fixed issue with SeaMonkey (one of the few browsers that didn't support innerText on DOM elements)

This commit is contained in:
Jeff Parsons 2016-03-24 11:38:05 -07:00
commit ff876da5fc
7 changed files with 70 additions and 69 deletions

View file

@ -1483,8 +1483,9 @@ FDC.prototype.findDiskette = function(sPath)
var controlDisks = this.bindings["listDisks"];
if (controlDisks && controlDisks.options) {
for (var i = 0; i < controlDisks.options.length; i++) {
if (controlDisks.options[i].value == sPath) {
return controlDisks.options[i].innerText;
var control = controlDisks.options[i];
if (control.value == sPath) {
return control.textContent;
}
}
}