]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9306 Converting tabs to spaces. Merged from MOODLE_19_STABLE
authornicolasconnault <nicolasconnault>
Thu, 23 Apr 2009 07:22:27 +0000 (07:22 +0000)
committernicolasconnault <nicolasconnault>
Thu, 23 Apr 2009 07:22:27 +0000 (07:22 +0000)
lib/ajax/section_classes.js

index 93b0c1716ffd09595a4deb321245101c9960d0b8..68588fa10a71614ab33271825c2b2d8b6168fae8 100755 (executable)
@@ -239,8 +239,8 @@ section_class.prototype.move_to_section = function(target) {
         } else if (main.sections[i] == target) {
             //encounter with target node
             if (this.debug) {
-                               YAHOO.log("Found target "+main.sections[i].getEl().id);
-                       }
+                YAHOO.log("Found target "+main.sections[i].getEl().id);
+            }
             main.sections[i].swap_dates(main.sections[eval(loopmodifier)]);
             main.sections[i].swap_with_section(main.sections[eval(loopmodifier)]);
             found = false;
@@ -592,8 +592,8 @@ resource_class.prototype.init_buttons = function() {
     var moveRight = false;
     var updateButton = null;
 
-       // for RTL support
-       var isrtl = (document.getElementsByTagName("html")[0].dir=="rtl");
+    // for RTL support
+    var isrtl = (document.getElementsByTagName("html")[0].dir=="rtl");
 
     for (var x=0; x<buttons.length; x++) {
         if (buttons[x].className == 'editing_moveleft') {
@@ -711,10 +711,10 @@ resource_class.prototype.indent_left = function() {
 
 resource_class.prototype.indent_right = function() {
 
-       // for RTL support
-       var isrtl = (document.getElementsByTagName("html")[0].dir=="rtl");
+    // for RTL support
+    var isrtl = (document.getElementsByTagName("html")[0].dir=="rtl");
 
-       var spacer = YAHOO.util.Dom.getElementsByClassName('spacer',
+    var spacer = YAHOO.util.Dom.getElementsByClassName('spacer',
             'img', this.getEl())[0];
     if (!spacer) {
         var spacer = document.createElement('img');