Set close button type attribute to 'button'.

Stops IE10 from closing the dialog on an enter keypress.

Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
James Groffen 2016-01-07 14:26:03 +10:30 committed by Petr Vobornik
parent d9983d8ec6
commit f5f5c8c603

View File

@ -407,6 +407,7 @@ IPA.dialog = function(spec) {
that.title_close_button = $('<button/>', {
'class': 'close',
'type': 'button',
'aria-hidden': 'true',
click: function() {
that.close();