Index: popups.js =================================================================== --- popups.js (revision 1305) +++ popups.js (working copy) @@ -237,10 +237,11 @@ }; /** - * Set the focus on the popups to the first visible form element, or the first button, or the close link. + * Set the focus on the popups to the first visible form element, or the first + * button, or the close link unless class="no-focus" is set. */ Drupal.popups.refocus = function() { - $focus = $('#popups input:visible:eq(0)'); + $focus = $('#popups input:visible:eq(0):not(.no-focus)'); if (!isset(focus)) { $focus = $('#popups-close'); // Doesn't seem to work. }