lib/ajax/ MDL-25675 Use className instead of classList.toString()

Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
This commit is contained in:
Andrew Robert Nicols 2010-12-14 16:49:57 +00:00 committed by Dan Poltawski
parent 46f4c3932f
commit 218a465980

View File

@ -736,7 +736,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 {
@ -767,7 +767,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;