diff --git a/core/misc/dialog/dialog.ajax.js b/core/misc/dialog/dialog.ajax.js index 4845cbdf1b57e6c884de2e3c2eb7aed39b79b716..4d9d6c454eccb9ef35ea9f3995e895b8452f40e0 100644 --- a/core/misc/dialog/dialog.ajax.js +++ b/core/misc/dialog/dialog.ajax.js @@ -15,7 +15,10 @@ // dialogs. Non-modal dialogs are responsible for creating their own // elements, since there can be multiple non-modal dialogs at a time. if (!$('#drupal-modal').length) { - $('<div id="drupal-modal" />').hide().appendTo('body'); + // Add 'ui-front' jQuery UI class so jQuery UI widgets like autocomplete + // sit on top of dialogs. For more information see + // http://api.jqueryui.com/theming/stacking-elements/. + $('<div id="drupal-modal" class="ui-front"/>').hide().appendTo('body'); } // Special behaviors specific when attaching content within a dialog.