From 74a344bf3b8c78c11221beac990045a730e33520 Mon Sep 17 00:00:00 2001 From: vyshane Date: Fri, 9 Feb 2007 05:16:43 +0000 Subject: [PATCH] Merged from 1.7. --- lib/ajax/section_classes.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'); -- 2.39.5