Commit b6af60e1 authored by webchick's avatar webchick
Browse files

Issue #1833678 by nod_: Fixed Ajax is messing with overlay.

parent 4964fd29
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment