]> source.dussan.org Git - jquery-ui.git/commitdiff
Don't use :submit selector.
authorScott González <scott.gonzalez@gmail.com>
Mon, 21 May 2012 18:53:27 +0000 (14:53 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 21 May 2012 18:53:27 +0000 (14:53 -0400)
demos/button/default.html
ui/jquery.ui.button.js

index 60d2674c057fbc002d300a8086cba92206198bea..90369f8169285742e1279cd1cf892aed1217129a 100644 (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>
 
index f3abdaf769a009041abf3feed541842815809f43..0feb1e893e8afddadc087926e51feecea4170b19 100644 (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() {