projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b0cea10
)
add showdisabled option
author
ivan
<ivan>
Tue, 25 May 2010 12:14:24 +0000
(12:14 +0000)
committer
ivan
<ivan>
Tue, 25 May 2010 12:14:24 +0000
(12:14 +0000)
httemplate/elements/select-pkg_class.html
patch
|
blob
|
history
diff --git
a/httemplate/elements/select-pkg_class.html
b/httemplate/elements/select-pkg_class.html
index
f30259e
..
e47cfe4
100644
(file)
--- a/
httemplate/elements/select-pkg_class.html
+++ b/
httemplate/elements/select-pkg_class.html
@@
-3,7
+3,7
@@
'name_col' => 'classname',
'value' => $classnum,
'empty_label' => '(none)',
- 'hashref' =>
{ 'disabled' => '' }
,
+ 'hashref' =>
\%hash
,
%opt,
)
%>
@@
-12,6
+12,10
@@
my %opt = @_;
my $classnum = $opt{'curr_value'} || $opt{'value'};
+my %hash = ();
+$hash{'disabled'} = '' unless $opt{'showdisabled'};
+
+
$opt{'records'} = delete $opt{'pkg_class'}
if $opt{'pkg_class'};