Merge branch 'MDL-25675' of git://git.luns.net.uk/moodle
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user