Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b6af60e1
Commit
b6af60e1
authored
Nov 07, 2012
by
webchick
Browse files
Issue
#1833678
by nod_: Fixed Ajax is messing with overlay.
parent
4964fd29
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/misc/ajax.js
View file @
b6af60e1
...
...
@@ -215,6 +215,7 @@ Drupal.ajax.prototype.keypressResponse = function (element, event) {
// TRUE. On a text-type widget a space should always be a space.
if
(
event
.
which
===
13
||
(
event
.
which
===
32
&&
element
.
type
!==
'
text
'
&&
element
.
type
!==
'
textarea
'
))
{
event
.
preventDefault
();
event
.
stopPropagation
();
$
(
ajax
.
element_settings
.
element
).
trigger
(
ajax
.
element_settings
.
event
);
}
};
...
...
@@ -229,6 +230,7 @@ Drupal.ajax.prototype.keypressResponse = function (element, event) {
*/
Drupal
.
ajax
.
prototype
.
eventResponse
=
function
(
element
,
event
)
{
event
.
preventDefault
();
event
.
stopPropagation
();
// Create a synonym for this to reduce code confusion.
var
ajax
=
this
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment