RT# 81706 Remove redundant loads of jquery.js
[freeside.git] / httemplate / browse / part_pkg_taxproduct / suretax.html
index 9c00c5c..91f3737 100755 (executable)
@@ -16,7 +16,6 @@
   'nohtmlheader'   => 1,
   'disable_total'  => 1,
 &>
-<script src="<% $fsurl %>elements/jquery.js"></script>
 <script>
 var category_labels = <% encode_json(\%category_labels) %>;
 $().ready(function() {
@@ -91,6 +90,7 @@ function select_taxproduct(taxproductnum, description) {
   </table>
   <input type="button" id="new_taxproduct_submit" disabled=1 value="Add">
 </FORM>
+<& /elements/footer-popup.html &>
 <%shared>
 # populate dropdown
 
@@ -124,7 +124,7 @@ foreach my $row ( qsearch({
 &>
 <& /elements/hidden.html,
   field       => 'id',
-  curr_value  => $cgi->param('id'),
+  curr_value  => scalar($cgi->param('id')),
 &>
 </%def>
 <%init>
@@ -138,8 +138,7 @@ my $id = $cgi->param('id');
 my $select_onclick = sub {
   my $row = shift;
   my $taxnum = $row->taxproductnum;
-  my $code = $row->taxproduct;
-  my $desc = $row->description;
+  my $desc = $row->taxproduct . ' ' . $row->description;
   "select_taxproduct('$taxnum', '$desc')";
 };