[Jifty-commit] r5571 - in jifty/trunk: examples/Ping/lib/Ping/Action examples/Ping/share/web/templates
Jifty commits
jifty-commit at lists.jifty.org
Wed Jul 23 13:19:39 EDT 2008
Author: alexmv
Date: Wed Jul 23 13:19:37 2008
New Revision: 5571
Modified:
jifty/trunk/ (props changed)
jifty/trunk/examples/Ping/lib/Ping/Action/CancelPing.pm
jifty/trunk/examples/Ping/share/web/templates/index.html
Log:
r34551 at kohr-ah: chmrr | 2008-07-23 13:16:39 -0400
* Updates to Ping to make it work with current code
Modified: jifty/trunk/examples/Ping/lib/Ping/Action/CancelPing.pm
==============================================================================
--- jifty/trunk/examples/Ping/lib/Ping/Action/CancelPing.pm (original)
+++ jifty/trunk/examples/Ping/lib/Ping/Action/CancelPing.pm Wed Jul 23 13:19:37 2008
@@ -15,7 +15,10 @@
my $id = Jifty->web->session->id;
my $sid = Jifty->bus->modify("$id-ping" => sub {
- delete($_->{$host})
+ delete($_->{$host});
+ });
+ Jifty->bus->modify("hosts" => sub {
+ kill 2, delete $_->{$host};
});
Jifty->subs->cancel($sid);
Modified: jifty/trunk/examples/Ping/share/web/templates/index.html
==============================================================================
--- jifty/trunk/examples/Ping/share/web/templates/index.html (original)
+++ jifty/trunk/examples/Ping/share/web/templates/index.html Wed Jul 23 13:19:37 2008
@@ -7,7 +7,7 @@
<table width="80%"><tr valign="top"><td>
<fieldset>
<legend>New Pings</legend>
-% my $form = Jifty->web->form->new(name => 'new');
+% my $form = Jifty->web->form;
<% $form->start %>
<% $action->form_field('host') %>
<% $action->form_field('only_failure')%>
@@ -22,7 +22,7 @@
<legend>Current Pings</legend>
<table width="100%">
% foreach my $sub (@subs) {
-% $form = Jifty->web->form->new(name => $sub);
+% $form = Jifty->web->form;
<% $form->start %>
% my $del = Jifty->web->new_action(class => 'CancelPing', arguments => { host => $sub });
<tr><td>
@@ -37,7 +37,6 @@
</fieldset>
% }
</td></tr></table>
-<script>new Jifty.Subs({}).start();</script>
</&>
<%init>
More information about the Jifty-commit
mailing list