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

8.0.x
webchick 2012-11-07 00:50:15 -08:00
parent 4964fd2989
commit b6af60e11d
1 changed files with 2 additions and 0 deletions

View File

@ -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;