[freeside-commits] freeside/httemplate/browse cgp_rule.html, 1.2, 1.3
Ivan,,,
ivan at wavetail.420.am
Sat May 22 18:59:21 PDT 2010
- Previous message: [freeside-commits] freeside/FS/FS/part_export communigate_pro.pm, 1.32, 1.33
- Next message: [freeside-commits] freeside/FS/FS svc_CGPRule_Mixin.pm, NONE, 1.1 svc_domain.pm, 1.68, 1.69 svc_acct.pm, 1.292, 1.293 cgp_rule_action.pm, 1.4, 1.5 cgp_rule_condition.pm, 1.4, 1.5 cgp_rule.pm, 1.4, 1.5 Schema.pm, 1.217, 1.218
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv13392/httemplate/browse
Modified Files:
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.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- cgp_rule.html 30 Apr 2010 02:32:38 -0000 1.2
+++ cgp_rule.html 23 May 2010 01:59:19 -0000 1.3
@@ -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>
- Previous message: [freeside-commits] freeside/FS/FS/part_export communigate_pro.pm, 1.32, 1.33
- Next message: [freeside-commits] freeside/FS/FS svc_CGPRule_Mixin.pm, NONE, 1.1 svc_domain.pm, 1.68, 1.69 svc_acct.pm, 1.292, 1.293 cgp_rule_action.pm, 1.4, 1.5 cgp_rule_condition.pm, 1.4, 1.5 cgp_rule.pm, 1.4, 1.5 Schema.pm, 1.217, 1.218
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list