Lines 160-192
Link Here
|
160 |
[% END %] |
160 |
[% END %] |
161 |
[% END %] |
161 |
[% END %] |
162 |
<div id="circ_holds_select" class="toptabs"> |
162 |
<div id="circ_holds_select" class="toptabs"> |
163 |
<ul> |
163 |
<ul class="nav nav-tabs" role="tablist"> |
164 |
<li><a href="#holds_patronsearch_pane">Patrons</a></li> |
164 |
<li role="presentation" class="active"><a href="#holds_patronsearch_pane" aria-controls="holds_patronsearch_pane" role="tab" data-toggle="tab">Patrons</a></li> |
165 |
[% IF clubcount %] |
165 |
[% IF clubcount %] |
166 |
<li><a href="#holds_clubsearch_pane">Clubs</a></li> |
166 |
<li role="presentation"><a href="#holds_clubsearch_pane" aria-controls="holds_clubsearch_pane" role="tab" data-toggle="tab">Clubs</a></li> |
167 |
[% END %] |
167 |
[% END %] |
168 |
</ul> |
168 |
</ul> |
169 |
<div id="holds_patronsearch_pane"> |
169 |
<div class="tab-content"> |
170 |
[% PROCESS patron_search_filters_simple %] |
170 |
<div id="holds_patronsearch_pane" role="tabpanel" class="tab-pane active"> |
|
|
171 |
[% PROCESS patron_search_filters_simple %] |
171 |
|
172 |
|
172 |
[% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %] |
173 |
[% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %] |
173 |
</div> |
|
|
174 |
[% IF clubcount %] |
175 |
<div id="holds_clubsearch_pane"> |
176 |
<form id="holds_clubsearch" action="request.pl" method="post"> |
177 |
<div class="hint">Enter club ID or partial name:</div> |
178 |
<input type="text" size="40" id="club" class="focus" name="findclub" autocomplete="off" /> |
179 |
<input type="submit" value="Search" /> |
180 |
[% FOREACH biblionumber IN biblionumbers %] |
181 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/> |
182 |
[% END %] |
183 |
|
184 |
</form> <!-- /#holds_patronsearch --> |
185 |
[% IF clubs %] |
186 |
[% INCLUDE 'clubs-table.inc' destination = "holds" %] |
187 |
[% END %] |
188 |
</div> |
174 |
</div> |
189 |
[% END %] |
175 |
[% IF clubcount %] |
|
|
176 |
<div id="holds_clubsearch_pane" role="tabpanel" class="tab-pane"> |
177 |
<form id="holds_clubsearch" action="request.pl" method="post"> |
178 |
<div class="hint">Enter club ID or partial name:</div> |
179 |
<input type="text" size="40" id="club" class="focus" name="findclub" autocomplete="off" /> |
180 |
<input type="submit" value="Search" /> |
181 |
[% FOREACH biblionumber IN biblionumbers %] |
182 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/> |
183 |
[% END %] |
184 |
|
185 |
</form> <!-- /#holds_patronsearch --> |
186 |
[% IF clubs %] |
187 |
[% INCLUDE 'clubs-table.inc' destination = "holds" %] |
188 |
[% END %] |
189 |
</div> |
190 |
[% END %] |
191 |
</div> <!-- /.tab-content --> |
190 |
</div> |
192 |
</div> |
191 |
</fieldset> |
193 |
</fieldset> |
192 |
[% ELSIF club %] |
194 |
[% ELSIF club %] |
Lines 1192-1206
Link Here
|
1192 |
}); |
1194 |
}); |
1193 |
|
1195 |
|
1194 |
[% SET active = clubs ? 1 : 0 %] |
1196 |
[% SET active = clubs ? 1 : 0 %] |
1195 |
$('#circ_holds_select').tabs({ |
1197 |
/* Set active tab based on whether a club search was submitted */ |
1196 |
active: [% active | $raw %], |
1198 |
var tabs = $("#circ_holds_select li:eq(" + [% active | $raw %] + ") a").tab("show"); |
1197 |
activate: function(){ |
1199 |
$( tabs[0].hash ).find("input.focus").focus(); |
1198 |
$(this).find("input.focus").focus(); |
1200 |
|
1199 |
}, |
1201 |
/* Change active focus when tabs change */ |
1200 |
create: function(){ |
1202 |
$("#circ_holds_select a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
1201 |
$(this).find("input.focus").focus(); |
1203 |
active_tab = e.target.hash; |
1202 |
} |
1204 |
$( active_tab ).find("input.focus").focus(); |
1203 |
}); |
1205 |
}); |
|
|
1206 |
|
1204 |
function ToggleHoldsToPlace() { |
1207 |
function ToggleHoldsToPlace() { |
1205 |
if ( $("#requestany").prop('checked') ) { |
1208 |
if ( $("#requestany").prop('checked') ) { |
1206 |
$("#holds_to_place_count").prop('disabled', false); |
1209 |
$("#holds_to_place_count").prop('disabled', false); |
1207 |
- |
|
|