Merge branch 'MDL-25675' of git://git.luns.net.uk/moodle

This commit is contained in:
Petr Skoda
2011-01-10 14:34:18 +01:00
+2 -2
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;