Lines 87-92
$(document).ready(function() { calcNewsuggTotal(); });
Link Here
|
87 |
</script> |
87 |
</script> |
88 |
[% END %] |
88 |
[% END %] |
89 |
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script> |
89 |
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script> |
|
|
90 |
<script type="text/javascript"> |
91 |
// <![CDATA[ |
92 |
$(document).ready(function() { |
93 |
$('#sub_budgetid').hide(); |
94 |
$('#su_sub_budgetid').hide(); |
95 |
$("#budgetid").val("").attr('selected', 'selected'); |
96 |
|
97 |
$('#budgetid').change(function() { |
98 |
var budget= $('#budgetid').val(); |
99 |
|
100 |
if (budget ==""){ |
101 |
$('#sub_budgetid').hide(); |
102 |
$('#su_sub_budgetid').hide(); |
103 |
$('#sub_budgetid option:visible').hide(); |
104 |
$('#su_sub_budgetid option:visible').hide(); |
105 |
$("#sub_budgetid").val("").attr('selected', 'selected'); |
106 |
$("#su_sub_budgetid").val("").attr('selected', 'selected'); |
107 |
} |
108 |
else { |
109 |
$('#sub_budgetid').show(); |
110 |
$('#sub_budgetid option:visible').hide(); |
111 |
$('.'+budget).show(); |
112 |
$('#a').show(); |
113 |
$("#sub_budgetid").val("").attr('selected', 'selected'); |
114 |
$('#su_sub_budgetid option:visible').hide(); |
115 |
$('#su_sub_budgetid').hide(); |
116 |
} |
117 |
}); |
118 |
|
119 |
$('#sub_budgetid').change(function() { |
120 |
var subbudget= $('#sub_budgetid').val(); |
121 |
|
122 |
if (subbudget ==""){ |
123 |
$('#su_sub_budgetid').hide(); |
124 |
$("#su_sub_budgetid").val("").attr('selected', 'selected'); |
125 |
$("#sub_budgetid").val("").attr('selected', 'selected'); |
126 |
|
127 |
} |
128 |
else { |
129 |
$('#su_sub_budgetid').show(); |
130 |
$('#su_sub_budgetid option:visible').hide(); |
131 |
$('.'+subbudget).show(); |
132 |
$('#b').show(); |
133 |
$("#su_sub_budgetid").val("").attr('selected', 'selected'); |
134 |
} |
135 |
}); |
136 |
}); |
137 |
// ]]> |
138 |
</script> |
139 |
|
140 |
|
90 |
</head> |
141 |
</head> |
91 |
<body> |
142 |
<body> |
92 |
[% INCLUDE 'header.inc' %] |
143 |
[% INCLUDE 'header.inc' %] |
Lines 169-174
$(document).ready(function() { calcNewsuggTotal(); });
Link Here
|
169 |
<option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %] |
220 |
<option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %] |
170 |
[% IF ( budgetsloo.selected ) %]<option value="[% budgetsloo.budget_id %]" selected="selected">[% budgetsloo.budget_name %]</option>[% ELSE %]<option value="[% budgetsloo.budget_id %]">[% budgetsloo.budget_name %]</option>[% END %][% END %] |
221 |
[% IF ( budgetsloo.selected ) %]<option value="[% budgetsloo.budget_id %]" selected="selected">[% budgetsloo.budget_name %]</option>[% ELSE %]<option value="[% budgetsloo.budget_id %]">[% budgetsloo.budget_name %]</option>[% END %][% END %] |
171 |
</select> |
222 |
</select> |
|
|
223 |
<select name="sub_budgetid" id="sub_budgetid" > |
224 |
<option value="" id="a">Any</option>[% FOREACH sub_budget_loo IN sub_budgetsloop %] |
225 |
[% IF ( sub_budgetloo.selected ) %]<option value="[% sub_budget_loo.budget_id %]" selected="selected" class="[% sub_budget_loo.budget_parent_id %]" style ="display : none;">[% sub_budget_loo.budget_name %]</option>[% ELSE %]<option value="[% sub_budget_loo.budget_id %]" class="[% sub_budget_loo.budget_parent_id %]" style ="display : none;" >[% sub_budget_loo.budget_name %]</option>[% END %][% END %] |
226 |
</select> |
227 |
<select name="su_sub_budgetid" id="su_sub_budgetid"> |
228 |
<option value="" id="b">Any</option>[% FOREACH su_sub_budgetsloo IN su_sub_budgetsloop %] |
229 |
[% IF ( su_sub_budgetsloo.selected ) %]<option value="[% su_sub_budgetsloo.budget_id %]" selected="selected" class="[% su_sub_budgetsloo.budget_parent_id %]" style ="display : none;">[% su_sub_budgetsloo.budget_name %]</option>[% ELSE %]<option value="[% su_sub_budgetsloo.budget_id %]" class="[% su_sub_budgetsloo.budget_parent_id %]" style ="display : none;">[% su_sub_budgetsloo.budget_name %]</option>[% END %][% END %] |
230 |
</select> |
172 |
</li><li><label for="quantity">Copies:</label> |
231 |
</li><li><label for="quantity">Copies:</label> |
173 |
<input type="text" size="10" id="quantity" name="quantity" value="[% quantity %]" onchange="calcNewsuggTotal();" /> |
232 |
<input type="text" size="10" id="quantity" name="quantity" value="[% quantity %]" onchange="calcNewsuggTotal();" /> |
174 |
</li><li><label for="currency">Currency:</label> |
233 |
</li><li><label for="currency">Currency:</label> |