mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 05:54:19 +02:00
MDL-58948 course: correct event type listener
This event handler is listening for click events on a select element, should be a change event.
This commit is contained in:
parent
b5be387556
commit
95ee1f6392
@ -279,7 +279,7 @@ Console.prototype = {
|
||||
if (!this.categoriesinit) {
|
||||
this.get('categorylisting').delegate('click', this.handleCategoryDelegation, 'a[data-action]', this);
|
||||
this.get('categorylisting').delegate('click', this.handleCategoryDelegation, 'input[name="bcat[]"]', this);
|
||||
this.get('categorylisting').delegate('click', this.handleBulkSortByaction, '#menuselectsortby', this);
|
||||
this.get('categorylisting').delegate('change', this.handleBulkSortByaction, '#menuselectsortby', this);
|
||||
this.categoriesinit = true;
|
||||
Y.log(count + ' categories being managed', 'info', 'moodle-course-management');
|
||||
} else {
|
||||
|
File diff suppressed because one or more lines are too long
@ -278,7 +278,7 @@ Console.prototype = {
|
||||
if (!this.categoriesinit) {
|
||||
this.get('categorylisting').delegate('click', this.handleCategoryDelegation, 'a[data-action]', this);
|
||||
this.get('categorylisting').delegate('click', this.handleCategoryDelegation, 'input[name="bcat[]"]', this);
|
||||
this.get('categorylisting').delegate('click', this.handleBulkSortByaction, '#menuselectsortby', this);
|
||||
this.get('categorylisting').delegate('change', this.handleBulkSortByaction, '#menuselectsortby', this);
|
||||
this.categoriesinit = true;
|
||||
} else {
|
||||
}
|
||||
|
2
course/yui/src/management/js/console.js
vendored
2
course/yui/src/management/js/console.js
vendored
@ -277,7 +277,7 @@ Console.prototype = {
|
||||
if (!this.categoriesinit) {
|
||||
this.get('categorylisting').delegate('click', this.handleCategoryDelegation, 'a[data-action]', this);
|
||||
this.get('categorylisting').delegate('click', this.handleCategoryDelegation, 'input[name="bcat[]"]', this);
|
||||
this.get('categorylisting').delegate('click', this.handleBulkSortByaction, '#menuselectsortby', this);
|
||||
this.get('categorylisting').delegate('change', this.handleBulkSortByaction, '#menuselectsortby', this);
|
||||
this.categoriesinit = true;
|
||||
Y.log(count + ' categories being managed', 'info', 'moodle-course-management');
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user