summaryrefslogtreecommitdiff
path: root/httemplate/browse
diff options
context:
space:
mode:
authorivan <ivan>2009-10-30 00:02:51 +0000
committerivan <ivan>2009-10-30 00:02:51 +0000
commit65f3079c363672d728147b30348925d495748cd6 (patch)
tree744d2469a7aae7c8ccc8faae857f10ae7bde2146 /httemplate/browse
parent7be6febddf3f7f6f28e4637a95b56e3f39bd220f (diff)
bulk tax changes, RT#6445
Diffstat (limited to 'httemplate/browse')
-rwxr-xr-xhttemplate/browse/cust_main_county.cgi9
1 files changed, 6 insertions, 3 deletions
diff --git a/httemplate/browse/cust_main_county.cgi b/httemplate/browse/cust_main_county.cgi
index d94e892ef..811fbd660 100755
--- a/httemplate/browse/cust_main_county.cgi
+++ b/httemplate/browse/cust_main_county.cgi
@@ -291,7 +291,7 @@ $html_posttotal .= ' )';
my $bulk_popup_link =
include( '/elements/popup_link_onclick.html',
- 'action' => "${p}edit/bulk-cust_main_county.html?MAGIC_taxnum_MAGIC",
+ 'action' => "${p}edit/bulk-cust_main_county.html?taxnum=MAGIC_taxnum_MAGIC",
'actionlabel' => 'Bulk add new tax',
'nofalse' => 1,
'height' => 420,
@@ -324,7 +324,7 @@ my $html_foot = <<END;
}
}
- function bulkPopup() {
+ function bulkPopup(action) {
var bulk_popup_link = "$bulk_popup_link";
var bulkstring = '';
theForm = document.taxesForm;
@@ -341,6 +341,7 @@ my $html_foot = <<END;
}
}
+ bulkstring = bulkstring + ';action=' + action;
if ( bulk_popup_link.length > 1920 ) { // IE 2083 URL limit
alert('Too many selections'); // should do some session thing...
return false;
@@ -356,7 +357,9 @@ my $html_foot = <<END;
<A HREF="javascript:setAll(false)">unselect all</A> |
<A HREF="javascript:toggleAll()">toggle all</A>
<BR><BR>
-<A HREF="javascript:void(0);" onClick="bulkPopup();">Add new tax to selected</A>
+<A HREF="javascript:void(0);" onClick="bulkPopup('add');">Add new tax to selected</A>
+|
+<A HREF="javascript:void(0);" onClick="bulkPopup('edit');">Bulk edit selected</A>
END