MDL-51679 course: Update groupmode CSS class

Changing groupmode of an activity via AJAX did not change the button's CSS class accordingly.
This commit is contained in:
Jan C. Dageförde 2015-10-07 07:48:00 +02:00
parent 35d3e8b00b
commit ee20bdcb8a
4 changed files with 8 additions and 2 deletions

View File

@ -688,6 +688,8 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
newtitlestr = M.util.get_string('clicktochangeinbrackets', 'moodle', M.util.get_string(newtitle, 'moodle'));
// Change the UI
var oldAction = button.getData('action');
button.replaceClass('editing_' + oldAction, 'editing_' + newtitle);
buttonimg.setAttrs({
'src': iconsrc
});

File diff suppressed because one or more lines are too long

View File

@ -688,6 +688,8 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
newtitlestr = M.util.get_string('clicktochangeinbrackets', 'moodle', M.util.get_string(newtitle, 'moodle'));
// Change the UI
var oldAction = button.getData('action');
button.replaceClass('editing_' + oldAction, 'editing_' + newtitle);
buttonimg.setAttrs({
'src': iconsrc
});

View File

@ -484,6 +484,8 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
newtitlestr = M.util.get_string('clicktochangeinbrackets', 'moodle', M.util.get_string(newtitle, 'moodle'));
// Change the UI
var oldAction = button.getData('action');
button.replaceClass('editing_' + oldAction, 'editing_' + newtitle);
buttonimg.setAttrs({
'src': iconsrc
});