mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
MDL-42989 JavaScript: Do not attempt to expand navigation when opening link
When clicking on a link which is also expandable, we should not attempt to expand it.
This commit is contained in:
parent
0bb56f2e31
commit
2f13dd98b0
blocks/navigation/yui
build/moodle-block_navigation-navigation
moodle-block_navigation-navigation-debug.jsmoodle-block_navigation-navigation-min.jsmoodle-block_navigation-navigation.js
src/navigation/js
@ -592,7 +592,7 @@ BRANCH.prototype = {
|
||||
} else {
|
||||
e.stopPropagation();
|
||||
}
|
||||
if (e.type === 'actionkey' && e.action === 'enter' && e.target.test('A')) {
|
||||
if ((e.type === 'actionkey' && e.action === 'enter') || e.target.test('a')) {
|
||||
// No ajaxLoad for enter.
|
||||
this.node.setAttribute('data-expandable', '0');
|
||||
this.node.setAttribute('data-loaded', '1');
|
||||
|
File diff suppressed because one or more lines are too long
2
blocks/navigation/yui/build/moodle-block_navigation-navigation/moodle-block_navigation-navigation.js
vendored
2
blocks/navigation/yui/build/moodle-block_navigation-navigation/moodle-block_navigation-navigation.js
vendored
@ -591,7 +591,7 @@ BRANCH.prototype = {
|
||||
} else {
|
||||
e.stopPropagation();
|
||||
}
|
||||
if (e.type === 'actionkey' && e.action === 'enter' && e.target.test('A')) {
|
||||
if ((e.type === 'actionkey' && e.action === 'enter') || e.target.test('a')) {
|
||||
// No ajaxLoad for enter.
|
||||
this.node.setAttribute('data-expandable', '0');
|
||||
this.node.setAttribute('data-loaded', '1');
|
||||
|
@ -590,7 +590,7 @@ BRANCH.prototype = {
|
||||
} else {
|
||||
e.stopPropagation();
|
||||
}
|
||||
if (e.type === 'actionkey' && e.action === 'enter' && e.target.test('A')) {
|
||||
if ((e.type === 'actionkey' && e.action === 'enter') || e.target.test('a')) {
|
||||
// No ajaxLoad for enter.
|
||||
this.node.setAttribute('data-expandable', '0');
|
||||
this.node.setAttribute('data-loaded', '1');
|
||||
|
Loading…
x
Reference in New Issue
Block a user