[jquery-ui] r3614 committed - button: enhanced visual test log

0 views
Skip to first unread message

codesite...@google.com

unread,
Jan 5, 2010, 10:24:20 AM1/5/10
to jquery...@googlegroups.com
Revision: 3614
Author: joern.zaefferer
Date: Tue Jan 5 07:23:17 2010
Log: button: enhanced visual test log
http://code.google.com/p/jquery-ui/source/detail?r=3614

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;">

Reply all
Reply to author
Forward
0 new messages