course-ajax MDL-22645 Fixed broken image urls in course ajax editing scripts

This commit is contained in:
Sam Hemelryk
2010-06-02 02:10:38 +00:00
parent b364151cb4
commit 424a353056
+4 -4
View File
@@ -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;