diff --git a/lib/ajax/section_classes.js b/lib/ajax/section_classes.js index 60e1cd4bea9..8d3ae2056ed 100755 --- a/lib/ajax/section_classes.js +++ b/lib/ajax/section_classes.js @@ -290,7 +290,7 @@ section_class.prototype.toggle_hide = function(e,target,superficial) { var strshow = main.portal.strings['show']; if (this.hidden) { YAHOO.util.Dom.removeClass(this.getEl(), 'hidden'); - this.viewButton.childNodes[0].src = this.viewButton.childNodes[0].src.replace(/show.gif/i, 'hide.gif'); + this.viewButton.childNodes[0].src = this.viewButton.childNodes[0].src.replace(/show/i, 'hide'); this.viewButton.childNodes[0].alt = this.viewButton.childNodes[0].alt.replace(strshow, strhide); this.viewButton.childNodes[0].title = this.viewButton.childNodes[0].title.replace(strshow, strhide); //IE hack. this.viewButton.title = this.viewButton.title.replace(strshow, strhide); @@ -306,7 +306,7 @@ section_class.prototype.toggle_hide = function(e,target,superficial) { } else { YAHOO.util.Dom.addClass(this.getEl(), 'hidden'); - this.viewButton.childNodes[0].src = this.viewButton.childNodes[0].src.replace(/hide.gif/i, 'show.gif'); + this.viewButton.childNodes[0].src = this.viewButton.childNodes[0].src.replace(/hide/i, 'show'); this.viewButton.childNodes[0].alt = this.viewButton.childNodes[0].alt.replace(strhide, strshow); this.viewButton.childNodes[0].title = this.viewButton.childNodes[0].title.replace(strhide, strshow); //IE hack. this.viewButton.title = this.viewButton.title.replace(strhide, strshow); @@ -757,7 +757,7 @@ resource_class.prototype.toggle_hide = function(target, e, superficial, force) { } if (this.hidden) { YAHOO.util.Dom.removeClass(this.linkContainer, 'dimmed'); - this.viewButton.childNodes[0].src = this.viewButton.childNodes[0].src.replace(/show.gif/i, 'hide.gif'); + this.viewButton.childNodes[0].src = this.viewButton.childNodes[0].src.replace(/show/i, 'hide'); this.viewButton.childNodes[0].alt = this.viewButton.childNodes[0].alt.replace(strshow, strhide); this.viewButton.title = this.viewButton.title.replace(strshow, strhide); this.hidden = false; @@ -767,7 +767,7 @@ resource_class.prototype.toggle_hide = function(target, e, superficial, force) { } } else { YAHOO.util.Dom.addClass(this.linkContainer, 'dimmed'); - this.viewButton.childNodes[0].src = this.viewButton.childNodes[0].src.replace(/hide.gif/i, 'show.gif'); + this.viewButton.childNodes[0].src = this.viewButton.childNodes[0].src.replace(/hide/i, 'show'); this.viewButton.childNodes[0].alt = this.viewButton.childNodes[0].alt.replace(strhide, strshow); this.viewButton.title = this.viewButton.title.replace(strhide, strshow); this.hidden = true;