[Checkins] SVN: z3c.formjs/trunk/src/z3c/formjs/js fix failing
tests after changes to z3c.form and a fix the the
buttonAndHandler function
Paul Carduner
paulcarduner at gmail.com
Sun May 11 19:34:58 EDT 2008
Log message for revision 86661:
fix failing tests after changes to z3c.form and a fix the the buttonAndHandler function
Changed:
U z3c.formjs/trunk/src/z3c/formjs/jsaction.txt
U z3c.formjs/trunk/src/z3c/formjs/jsswitch.txt
-=-
Modified: z3c.formjs/trunk/src/z3c/formjs/jsaction.txt
===================================================================
--- z3c.formjs/trunk/src/z3c/formjs/jsaction.txt 2008-05-11 18:28:04 UTC (rev 86660)
+++ z3c.formjs/trunk/src/z3c/formjs/jsaction.txt 2008-05-11 23:34:56 UTC (rev 86661)
@@ -282,6 +282,8 @@
function(){alert("Hello World!");});
$("#form-buttons-dblhello").bind("dblclick",
function(){alert("Double Hello World!");});
+ $("#form-buttons-436c69636b204d65").bind("click",
+ function(){alert("You clicked the Click Me button.");});
})
</script>
</head>
Modified: z3c.formjs/trunk/src/z3c/formjs/jsswitch.txt
===================================================================
--- z3c.formjs/trunk/src/z3c/formjs/jsswitch.txt 2008-05-11 18:28:04 UTC (rev 86660)
+++ z3c.formjs/trunk/src/z3c/formjs/jsswitch.txt 2008-05-11 23:34:56 UTC (rev 86661)
@@ -148,16 +148,12 @@
<div class="row">
<label for="form-widgets-name">Name</label>
<span id="form-widgets-name"
- class="text-widget required textline-field">
- Stephan
- </span>
+ class="text-widget required textline-field">Stephan</span>
</div>
<div class="row">
<label for="form-widgets-age">Age</label>
<span id="form-widgets-age"
- class="text-widget required int-field">
- 27
- </span>
+ class="text-widget required int-field">27</span>
</div>
</form>
</body>
@@ -228,9 +224,7 @@
<span id="form-widgets-age"
class="text-widget required int-field"
onclick="$.get('/switchWidget',
- function(html){switchWidget("form-widgets-age", html)} )">
- 25
- </span>
+ function(html){switchWidget("form-widgets-age", html)} )">25</span>
Alternatively to selecting the widget by name, you can also specify the widget
id:
More information about the Checkins
mailing list