[freeside-commits] freeside/httemplate/browse cgp_rule.html, 1.1.2.3, 1.1.2.4
Ivan,,,
ivan at wavetail.420.am
Sat May 22 18:59:24 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv13396/httemplate/browse
Modified Files:
Tag: FREESIDE_1_9_BRANCH
cgp_rule.html
Log Message:
communigate pro rules, RT#7515
Index: cgp_rule.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/cgp_rule.html,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -w -d -r1.1.2.3 -r1.1.2.4
--- cgp_rule.html 30 Apr 2010 02:17:32 -0000 1.1.2.3
+++ cgp_rule.html 23 May 2010 01:59:21 -0000 1.1.2.4
@@ -40,7 +40,15 @@
my $html_init =
qq(<A HREF="$view">View this $svc_label</A><BR><BR>).
- qq!<A HREF="${p}edit/cgp_rule.html?svcnum=$svcnum">Add new rule</A><BR><BR>!;
+ qq!<A HREF="${p}edit/cgp_rule.html?svcnum=$svcnum">Add new rule</A><BR><BR>!.
+ qq!
+ <SCRIPT>
+ function areyousure(href) {
+ if (confirm("Are you sure you want to delete this rule?") == true)
+ window.location.href = href;
+ }
+ </SCRIPT>
+!;
my $condition_sub = sub {
my $cgp_rule = shift;
@@ -77,6 +85,9 @@
};
my $edit_sub = [ $p.'edit/cgp_rule.html?', 'rulenum' ];
-my $del_sub = [ $p.'misc/delete-cgp_rule.html?', 'rulenum' ]; #XXX javascript areyousure or something
+my $del_sub = sub {
+ my $rulenum = shift->rulenum;
+ [ "javascript:areyousure('${p}misc/delete-cgp_rule.html?$rulenum')", '' ];
+};
</%init>
More information about the freeside-commits
mailing list