Lines 31-36
Link Here
|
31 |
"aaSorting": [] |
31 |
"aaSorting": [] |
32 |
} ) ); |
32 |
} ) ); |
33 |
|
33 |
|
|
|
34 |
//keep a copy of all budgets before removing the inactives |
35 |
disabledBudgetsCopy = $("select[name='all_budget_id']").html(); |
36 |
$("select[name='all_budget_id'] .b_inactive").remove(); |
37 |
$("select[name='budget_id'] .b_inactive").remove(); |
38 |
|
39 |
$("#showallbudgets").click(function() { |
40 |
if ($(this).is(":checked")) { |
41 |
$("select[name='budget_id']").html(disabledBudgetsCopy); //Puts back all the funds |
42 |
} |
43 |
else { |
44 |
$("select[name='budget_id'] .b_inactive").remove(); |
45 |
} |
46 |
}); |
47 |
|
48 |
$("#all_showallbudgets").click(function() { |
49 |
if ($(this).is(":checked")) { |
50 |
$("select[name='all_budget_id']").html(disabledBudgetsCopy); //Puts back all the funds |
51 |
} |
52 |
else { |
53 |
$("select[name='all_budget_id'] .b_inactive").remove(); |
54 |
} |
55 |
}); |
56 |
|
34 |
$("select[name='budget_id']").change(function(){ |
57 |
$("select[name='budget_id']").change(function(){ |
35 |
var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat'); |
58 |
var sort1_authcat = $(this).find("option:selected").attr('data-sort1-authcat'); |
36 |
var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat'); |
59 |
var sort2_authcat = $(this).find("option:selected").attr('data-sort2-authcat'); |
Lines 155-160
Link Here
|
155 |
<div id="records_to_import"> |
178 |
<div id="records_to_import"> |
156 |
<span class="checkall"><a id="checkAll" href="#">Check all</a></span> |
179 |
<span class="checkall"><a id="checkAll" href="#">Check all</a></span> |
157 |
<span class="uncheckall"><a id="unCheckAll" href="#">Uncheck all</a></span> |
180 |
<span class="uncheckall"><a id="unCheckAll" href="#">Uncheck all</a></span> |
|
|
181 |
<label for="showallbudgets" style="float:none;width:auto;"> Show all funds:</label> |
182 |
<input type="checkbox" id="showallbudgets" /> |
158 |
<input type="hidden" name="op" value="import_records"/> |
183 |
<input type="hidden" name="op" value="import_records"/> |
159 |
<input type="hidden" name="basketno" value="[% basketno %]" /> |
184 |
<input type="hidden" name="basketno" value="[% basketno %]" /> |
160 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
185 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
Lines 212-223
Link Here
|
212 |
<input type="hidden" size="20" name="budget_id" value="[% budget_id %]" />[% Budget_name %] |
237 |
<input type="hidden" size="20" name="budget_id" value="[% budget_id %]" />[% Budget_name %] |
213 |
[% ELSE %] |
238 |
[% ELSE %] |
214 |
<select id="fund_record_[% biblio.import_record_id %]" size="1" name="budget_id"> |
239 |
<select id="fund_record_[% biblio.import_record_id %]" size="1" name="budget_id"> |
215 |
<option value=""></option> |
240 |
<option value="">Select a fund</option> |
216 |
[% FOREACH budget IN budget_loop %] |
241 |
[% FOREACH budget IN budget_loop %] |
217 |
[% IF ( budget.b_id == biblio.budget_id ) %] |
242 |
[% IF ( budget.b_id == biblio.budget_id ) %] |
218 |
<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %]</option> |
243 |
<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %]</option> |
219 |
[% ELSE %] |
244 |
[% ELSE %] |
220 |
<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %]</option> |
245 |
[% IF budget.b_active %]<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %]</option> |
|
|
246 |
[% ELSE %]<option value="[% budget.b_id %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %]</option> |
247 |
[% END %] |
221 |
[% END %] |
248 |
[% END %] |
222 |
[% END %] |
249 |
[% END %] |
223 |
</select> |
250 |
</select> |
Lines 302-315
Link Here
|
302 |
<li> |
329 |
<li> |
303 |
<label for="all_budget_id">Fund: </label> |
330 |
<label for="all_budget_id">Fund: </label> |
304 |
<select id="all_budget_id" size="1" name="all_budget_id"> |
331 |
<select id="all_budget_id" size="1" name="all_budget_id"> |
|
|
332 |
<option value="">Select a fund</option> |
305 |
[% FOREACH budget_loo IN budget_loop %] |
333 |
[% FOREACH budget_loo IN budget_loop %] |
306 |
[% IF ( budget_loo.b_sel ) %] |
334 |
[% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option> |
307 |
<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]" selected="selected">[% budget_loo.b_txt %]</option> |
335 |
[% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option> |
308 |
[% ELSE %] |
|
|
309 |
<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option> |
310 |
[% END %] |
336 |
[% END %] |
311 |
[% END %] |
337 |
[% END %] |
312 |
</select> |
338 |
</select> |
|
|
339 |
<label for="all_showallbudgets" style="float:none;width:auto;"> Show all:</label> |
340 |
<input type="checkbox" id="all_showallbudgets" /> |
313 |
</li> |
341 |
</li> |
314 |
[% END %] |
342 |
[% END %] |
315 |
</li> |
343 |
</li> |
316 |
- |
|
|