projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3f23bdf
)
in the unlikely error case, the order button should stay enabled
author
ivan
<ivan>
Sat, 29 Mar 2008 08:32:17 +0000
(08:32 +0000)
committer
ivan
<ivan>
Sat, 29 Mar 2008 08:32:17 +0000
(08:32 +0000)
httemplate/misc/order_pkg.html
patch
|
blob
|
history
diff --git
a/httemplate/misc/order_pkg.html
b/httemplate/misc/order_pkg.html
index
f4f2971
..
852b51c
100644
(file)
--- a/
httemplate/misc/order_pkg.html
+++ b/
httemplate/misc/order_pkg.html
@@
-21,7
+21,7
@@
function enable_order_pkg () {
<TH ALIGN="right">Package</TH>
<TD>
<% include('/elements/select-cust-part_pkg.html',
<TH ALIGN="right">Package</TH>
<TD>
<% include('/elements/select-cust-part_pkg.html',
- 'curr_value' =>
scalar( $cgi->param('pkgpart') )
,
+ 'curr_value' =>
$pkgpart
,
'cust_main' => $cust_main,
'onchange' => 'enable_order_pkg',
)
'cust_main' => $cust_main,
'onchange' => 'enable_order_pkg',
)
@@
-41,7
+41,7
@@
function enable_order_pkg () {
</TABLE>
<BR>
</TABLE>
<BR>
-<INPUT NAME="submit" TYPE="submit" VALUE="Order Package"
disabled
>
+<INPUT NAME="submit" TYPE="submit" VALUE="Order Package"
<% $pkgpart ? '' : 'DISABLED' %>
>
</FORM>
</BODY>
</FORM>
</BODY>
@@
-61,4
+61,6
@@
my $cust_main = qsearchs({
'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,
});
'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,
});
+my $pkgpart = scalar($cgi->param('pkgpart'));
+
</%init>
</%init>