From 8c8ecd71f5e4e4f803e14ae1db2c379aa9858284 Mon Sep 17 00:00:00 2001
From: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
Date: Tue, 14 Dec 2010 16:49:57 +0000
Subject: [PATCH] MDL-25675 Use className instead of classList.toString()

Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
---
 lib/ajax/section_classes.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ajax/section_classes.js b/lib/ajax/section_classes.js
index b228110..74e4c12 100755
--- a/lib/ajax/section_classes.js
+++ b/lib/ajax/section_classes.js
@@ -729,7 +729,7 @@ resource_class.prototype.indent_left = function() {
         }
         return false;
     }
-    var oldindent = indentdiv.classList.toString().match(/mod-indent-(\d{1,})/);
+    var oldindent = indentdiv.className.match(/mod-indent-(\d{1,})/);
     if (oldindent && oldindent[1] > 0) {
         oldindent = oldindent[1];
     } else {
@@ -760,7 +760,7 @@ resource_class.prototype.indent_right = function() {
         }
         return false;
     }
-    var oldindent = indentdiv.classList.toString().match(/mod-indent-(\d{1,})/);
+    var oldindent = indentdiv.className.match(/mod-indent-(\d{1,})/);
     if (oldindent && oldindent[1] >= 0) {
         oldindent = oldindent[1];
         var newindent = parseFloat(oldindent) + 1;
-- 
1.5.6.5

