Modified:
/branches/dev/tests/visual/button/default.html
=======================================
--- /branches/dev/tests/visual/button/default.html Sun Jan 3 04:58:12 2010
+++ /branches/dev/tests/visual/button/default.html Tue Jan 5 07:23:17 2010
@@ -19,9 +19,10 @@
var buttonSets = $('#radio0, #radio1, #radio2, #ops1, #format, #ops2,
#mode, #inputs, #anchors').buttonset();
buttons.add(buttonSets).click(function(event) {
- if ($(event.target).closest('.ui-button').length) {
+ var target = $(event.target);
+ if (target.closest('.ui-button').length) {
$("<div></div>")
- .text("Clicked " + $(event.target).text())
+ .text("Clicked " + (target.text() || target.val()))
.appendTo("#log");
}
});
@@ -108,7 +109,7 @@
<div id="inputs" style="margin-top: 2em;">
<input type="submit" value="Submit button" />
- <input type="reset" value="Reset button" />
+ <input type="reset" value="Reset button" class="{button:{label:'Custom
reset'}}" />
</div>
<div id="anchors" style="margin-top: 2em;">