Skip to content
Permalink
Browse files

Don't use :submit selector.

  • Loading branch information...
scottgonzalez committed May 21, 2012
1 parent 8b17f68 commit e37f599a53d57a1fdee2fd8de01198d68aa86ae8
Showing with 3 additions and 3 deletions.
  1. +2 −2 demos/button/default.html
  2. +1 −1 ui/jquery.ui.button.js
@@ -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>

@@ -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() {

0 comments on commit e37f599

Please sign in to comment.
You can’t perform that action at this time.