diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-05-21 14:53:27 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-05-21 14:53:27 -0400 |
commit | e37f599a53d57a1fdee2fd8de01198d68aa86ae8 (patch) | |
tree | 90cc8810479055e0508fc16a6ddc10fb71733325 | |
parent | 8b17f68b579f2b12a6801be741434a53ffe28bbf (diff) | |
download | jquery-ui-e37f599a53d57a1fdee2fd8de01198d68aa86ae8.tar.gz jquery-ui-e37f599a53d57a1fdee2fd8de01198d68aa86ae8.zip |
Don't use :submit selector.
-rw-r--r-- | demos/button/default.html | 4 | ||||
-rw-r--r-- | ui/jquery.ui.button.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/demos/button/default.html b/demos/button/default.html index 60d2674c0..90369f816 100644 --- a/demos/button/default.html +++ b/demos/button/default.html @@ -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> diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index f3abdaf76..0feb1e893 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -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() { |