aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorTJ VanToll <tj.vantoll@gmail.com>2013-05-22 21:43:40 -0400
committerTJ VanToll <tj.vantoll@gmail.com>2013-05-23 19:57:32 -0400
commitc19e7b3496d14b40e71ba892213889fc8cc81d4f (patch)
tree9eca40d7e1a6d72d713a076a1a57aca2301fc7b5 /ui
parentdaf3f0d9af5b29dc090e15d57cf884e3c12f7cad (diff)
downloadjquery-ui-c19e7b3496d14b40e71ba892213889fc8cc81d4f.tar.gz
jquery-ui-c19e7b3496d14b40e71ba892213889fc8cc81d4f.zip
Dialog: Add type="button" to the close button. Fixed #9312: Dialog: closes on enter in textbox in IE.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.dialog.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index b01907acf..16095292c 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -342,7 +342,10 @@ $.widget( "ui.dialog", {
}
});
- this.uiDialogTitlebarClose = $("<button></button>")
+ // support: IE
+ // Use type="button" to prevent enter keypresses in textboxes from closing the
+ // dialog in IE (#9312)
+ this.uiDialogTitlebarClose = $( "<button type='button'></button>" )
.button({
label: this.options.closeText,
icons: {