From: vyshane Date: Fri, 9 Feb 2007 05:16:43 +0000 (+0000) Subject: Merged from 1.7. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=74a344bf3b8c78c11221beac990045a730e33520;p=moodle.git Merged from 1.7. --- diff --git a/lib/ajax/section_classes.js b/lib/ajax/section_classes.js index db88945e66..0990c007c1 100755 --- a/lib/ajax/section_classes.js +++ b/lib/ajax/section_classes.js @@ -668,6 +668,9 @@ resource_class.prototype.indent_left = function() { var spacer = YAHOO.util.Dom.getElementsByClassName('spacer', 'img', this.getEl())[0]; if (!spacer) { + if (this.debug) { + YAHOO.log('Could not indent left: spacer image does not exist', 'error'); + } return false; } if (spacer.width > 20) { @@ -697,7 +700,7 @@ resource_class.prototype.indent_right = function() { var spacer = document.createElement('img'); spacer.setAttribute('src', main.portal.strings['pixpath']+'/spacer.gif'); - spacer.setAttribute('class', 'spacer'); + spacer.className = 'spacer'; spacer.setAttribute('width', '20'); spacer.setAttribute('height', '12');