From b6af60e11d6558476adf3531d1477397536d0f96 Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 7 Nov 2012 00:50:15 -0800 Subject: [PATCH] Issue #1833678 by nod_: Fixed Ajax is messing with overlay. --- core/misc/ajax.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/misc/ajax.js b/core/misc/ajax.js index 8e935ed266d..58db3084daf 100644 --- a/core/misc/ajax.js +++ b/core/misc/ajax.js @@ -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;