Commit c72077c4 authored by Petr Skoda's avatar Petr Skoda
Browse files

Merge branch 'MDL-25676' of git://github.com/danpoltawski/moodle

parents 1af9fd38 1a0d7bd7
......@@ -631,6 +631,7 @@ resource_class.prototype.init_buttons = function() {
var moveLeft = false;
var moveRight = false;
var updateButton = null;
var assignButton = null;
// for RTL support
var isrtl = (document.getElementsByTagName("html")[0].dir=="rtl");
......@@ -642,6 +643,8 @@ resource_class.prototype.init_buttons = function() {
moveRight = true;
} else if (buttons[x].className == 'editing_update') {
updateButton = buttons[x].cloneNode(true);
} else if (buttons[x].className == 'editing_assign') {
assignButton = buttons[x].cloneNode(true);
} else if (buttons[x].className == 'editing_groupsnone') {
this.groupmode = this.NOGROUPS;
} else if (buttons[x].className == 'editing_groupsseparate') {
......@@ -717,6 +720,11 @@ resource_class.prototype.init_buttons = function() {
commandContainer.appendChild(button);
this.groupButton = button;
}
// Add the assign roles button back in
if (assignButton != null) {
commandContainer.appendChild(assignButton);
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment