Don't use :submit selector.

This commit is contained in:
Scott González 2012-05-21 14:53:27 -04:00
parent 8b17f68b57
commit e37f599a53
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
<link rel="stylesheet" href="../demos.css">
<script>
$(function() {
$( "input:submit, a, button", ".demo" ).button();
$( "input[type=submit], a, button", ".demo" ).button();
$( "a", ".demo" ).click(function() { return false; });
});
</script>
@ -22,7 +22,7 @@
<button>A button element</button>
<input type="submit" value="A submit button"/>
<input type="submit" value="A submit button">
<a href="#">An anchor</a>

View File

@ -357,7 +357,7 @@ $.widget( "ui.button", {
$.widget( "ui.buttonset", {
version: "@VERSION",
options: {
items: "button, [type=button], :submit, [type=reset], [type=checkbox], [type=radio], a, :data(button)"
items: "button, [type=button], [type=submit], [type=reset], [type=checkbox], [type=radio], a, :data(button)"
},
_create: function() {