diff --git a/js/misc/ajax.js b/js/misc/ajax.js index c76532c..1d88f80 100644 --- a/js/misc/ajax.js +++ b/js/misc/ajax.js @@ -65,8 +65,8 @@ Drupal.ajax.prototype.beforeSend = function (xmlhttprequest, options) { $('.throbber', this.progress.element).after('
' + this.progress.message + '
'); } - // If element is an input type, append after. - if ($element.is('input')) { + // If element is an input type, empty, or not visible, append after. + if ($element.is('input, :empty, :not(:visible)')) { $element.after(this.progress.element); } else if ($element.is('select')) {