]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from 1.7.
authorvyshane <vyshane>
Fri, 9 Feb 2007 05:16:43 +0000 (05:16 +0000)
committervyshane <vyshane>
Fri, 9 Feb 2007 05:16:43 +0000 (05:16 +0000)
lib/ajax/section_classes.js

index db88945e661553b7fb738eaab9414ddbb59500a5..0990c007c189d04c71c4ac3d5aac47e6a9e9be8e 100755 (executable)
@@ -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');