r3570 committed - Button: updated visual test for new buttonset plugin name.
Revision: 3570
Author: scott.gonzalez
Date: Wed Dec 30 19:18:21 2009
Log: Button: updated visual test for new buttonset plugin name.
http://code.google.com/p/jquery-ui/source/detail?r=3570
Modified:
/branches/dev/tests/visual/button/default.html
=======================================
--- /branches/dev/tests/visual/button/default.html Wed Dec 30 14:18:02 2009
+++ /branches/dev/tests/visual/button/default.html Wed Dec 30 19:18:21 2009
@@ -4,6 +4,10 @@
<title>Button Visual push: Default</title>
<link rel="stylesheet" href="../visual.css" type="text/css" />
<link rel="stylesheet" href="../../../themes/base/ui.all.css"
type="text/css">
+ <style type="text/css">
+ #toolbar { margin-top: 2em; padding:0.2em; }
+ #ops1, #ops2, #format, #mode { margin-right: 1em }
+ </style>
<script type="text/javascript" src="../../../jquery-1.3.2.js"></script>
<script type="text/javascript"
src="../../../external/jquery.metadata.js"></script>
<script type="text/javascript"
src="../../../ui/jquery.ui.core.js"></script>
@@ -13,8 +17,8 @@
<script type="text/javascript"
src="../../../ui/jquery.ui.tooltip.js"></script>
<script type="text/javascript">
$(function() {
- var buttons = $('#push button, #check, #ops1 button, #ops2 button,
#format :checkbox').button();
- var buttonSets = $('#radio, #ops1, #format, #ops2, #mode, #inputs,
#anchors').buttons();
+ var buttons = $('#push button, #check').button();
+ var buttonSets = $('#radio, #ops1, #format, #ops2, #mode, #inputs,
#anchors').buttonset();
buttons.add(buttonSets).click(function(event) {
$("<div></div>").text("Clicked " + $(event.target).text() + " (#" +
event.target.id + ")").appendTo("#log");
@@ -22,26 +26,20 @@
$("#disable-widgets").toggle(function() {
buttons.button("disable");
- buttonSets.buttons("disable");
+ buttonSets.buttonset("disable");
}, function() {
buttons.button("enable");
- buttonSets.buttons("enable");
+ buttonSets.buttonset("enable");
});
$("#toggle-widgets").toggle(function() {
buttons.button();
- buttonSets.buttons();
+ buttonSets.buttonset();
}, function() {
buttons.button("destroy");
- buttonSets.buttons("destroy");
+ buttonSets.buttonset("destroy");
}).click();
-
- //$().tooltip();
});
</script>
- <style type="text/css">
- #toolbar { margin-top: 2em; padding:0.2em; }
- #ops1, #ops2, #format, #mode { margin-right: 1em }
- </style>
</head>
<body>
@@ -111,7 +109,7 @@
<div id="log"></div>
<script type="text/javascript"
src="http://jqueryui.com/themeroller/themeswitchertool/"></script>
-<script>
+<script type="text/javascript">
$.fn.themeswitcher && $('<div></div>').css({
position: "absolute",
right: 10,
--