From 424a353056319618edd6448a1ddf824c21fe6cbc Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Wed, 2 Jun 2010 02:10:38 +0000 Subject: [PATCH] course-ajax MDL-22645 Fixed broken image urls in course ajax editing scripts --- lib/ajax/section_classes.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;