mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'wip-MDL-51841-master' of git://github.com/abgreeve/moodle
This commit is contained in:
commit
f5e587c1db
2 changed files with 3 additions and 3 deletions
2
lib/amd/build/form-autocomplete.min.js
vendored
2
lib/amd/build/form-autocomplete.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -606,14 +606,14 @@ define(['jquery', 'core/log', 'core/str', 'core/templates', 'core/notification']
|
||||||
});
|
});
|
||||||
var selectionElement = $(document.getElementById(selectionId));
|
var selectionElement = $(document.getElementById(selectionId));
|
||||||
// Handle clicks on the selected items (will unselect an item).
|
// Handle clicks on the selected items (will unselect an item).
|
||||||
selectionElement.parent().on('click', '[role=listitem]', function(e) {
|
selectionElement.on('click', '[role=listitem]', function(e) {
|
||||||
// Get the item that was clicked.
|
// Get the item that was clicked.
|
||||||
var item = $(e.currentTarget);
|
var item = $(e.currentTarget);
|
||||||
// Remove it from the selection.
|
// Remove it from the selection.
|
||||||
deselectItem(inputId, selectionId, item, originalSelect, multiple);
|
deselectItem(inputId, selectionId, item, originalSelect, multiple);
|
||||||
});
|
});
|
||||||
// Keyboard navigation for the selection list.
|
// Keyboard navigation for the selection list.
|
||||||
selectionElement.parent().on('keydown', function(e) {
|
selectionElement.on('keydown', function(e) {
|
||||||
switch (e.keyCode) {
|
switch (e.keyCode) {
|
||||||
case KEYS.DOWN:
|
case KEYS.DOWN:
|
||||||
// Choose the next selection item.
|
// Choose the next selection item.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue