[Bps-public-commit] App-Changeloggr branch, master, updated. 660fa4df9ee01f77b726f1d8853acb056596bc73
sartak at bestpractical.com
sartak at bestpractical.com
Tue Jun 9 11:39:07 EDT 2009
The branch, master has been updated
via 660fa4df9ee01f77b726f1d8853acb056596bc73 (commit)
from 3e23e07b54292840e511083f568632bd6eb56a59 (commit)
Summary of changes:
lib/App/Changeloggr/View.pm | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 660fa4df9ee01f77b726f1d8853acb056596bc73
Author: Shawn M Moore <sartak at gmail.com>
Date: Tue Jun 9 11:37:29 2009 -0400
Refresh score when we skip a change, type in a vote, or undo
diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index 48275f4..95194bf 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -246,7 +246,10 @@ sub show_vote_form {
my $label = $changelog->incremental_tags ? 'Vote and add tag' : 'Vote';
form_submit(
label => $label,
- onclick => { submit => $vote, refresh_self => 1 }
+ onclick => [
+ { submit => $vote, refresh_self => 1 },
+ { refresh => 'score' },
+ ],
);
}
@@ -290,7 +293,10 @@ sub show_vote_form {
$vote->button(
class => "vote",
label => 'Skip this change',
- onclick => { submit => $vote, refresh_self => 1 },
+ onclick => [
+ { submit => $vote, refresh_self => 1 },
+ { refresh => 'score' },
+ ],
arguments => { tag => '_skip' },
);
@@ -300,7 +306,10 @@ sub show_vote_form {
$undo->button(
class => "vote",
label => "Undo previous vote",
- onclick => { submit => $undo, refresh_self => 1 },
+ onclick => [
+ { submit => $undo, refresh_self => 1 },
+ { refresh => 'score' },
+ ],
);
}
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list