projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disable old no_censustract and with_geocode search options and move to cust_pkg searc...
[freeside.git]
/
httemplate
/
elements
/
tr-select-cust-part_pkg.html
diff --git
a/httemplate/elements/tr-select-cust-part_pkg.html
b/httemplate/elements/tr-select-cust-part_pkg.html
index
488f04a
..
696baff
100644
(file)
--- a/
httemplate/elements/tr-select-cust-part_pkg.html
+++ b/
httemplate/elements/tr-select-cust-part_pkg.html
@@
-1,5
+1,3
@@
-%if ( scalar(@pkg_class) > 1 && ! $conf->exists('disable-cust-pkg_class') ) {
-
<& /elements/xmlhttp.html,
'url' => $p.'misc/cust-part_pkg.cgi',
'subs' => [ 'get_part_pkg' ],
<& /elements/xmlhttp.html,
'url' => $p.'misc/cust-part_pkg.cgi',
'subs' => [ 'get_part_pkg' ],
@@
-28,7
+26,7
@@
discountnum.disabled = true; //disable discount dropdown
}
discountnum.disabled = true; //disable discount dropdown
}
- classnum = what.
options[what.selectedIndex].
value;
+ classnum = what.value;
function update_part_pkg(part_pkg) {
function update_part_pkg(part_pkg) {
@@
-64,12
+62,13
@@
);
}
);
}
- window.onload = function() {
+ <&| /elements/onload.js &>
classnum_changed(document.getElementById('classnum'));
classnum_changed(document.getElementById('classnum'));
- }
+ </&>
</SCRIPT>
</SCRIPT>
+% if ( scalar(@pkg_class) > 1 && ! $conf->exists('disable-cust-pkg_class') ) {
<TR>
<TH ALIGN="right"><% mt('Package Class') |h %></TH>
<TD COLSPAN=7>
<TR>
<TH ALIGN="right"><% mt('Package Class') |h %></TH>
<TD COLSPAN=7>
@@
-81,7
+80,9
@@
</TD>
</TR>
</TD>
</TR>
-%}
+% } else { # so that the rest of the page works correctly
+ <INPUT TYPE="hidden" ID="classnum" NAME="classnum" VALUE="-1`">
+% }
<TR>
<TH ALIGN="right"><% mt('Package') |h %></TH>
<TR>
<TH ALIGN="right"><% mt('Package') |h %></TH>