MDL-84298 mod_assign: target only first label for grade popout button.

This commit is contained in:
Paul Holden
2025-02-24 22:22:17 +00:00
parent e06475d8ae
commit 9451a354fd
3 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -266,7 +266,7 @@ define([
templates.render('mod_assign/popout_button', {}).done(function(html) {
var parents = region.find('[data-fieldtype="filemanager"],[data-fieldtype="editor"],[data-fieldtype="grading"]')
.closest('.fitem');
parents.addClass('has-popout').find('label').parent().append(html);
parents.addClass('has-popout').find('label:first').parent().append(html);
region.on('click', '[data-region="popout-button"]', this._togglePopout.bind(this));
}.bind(this)).fail(notification.exception);