Lines 53-65
Link Here
|
53 |
|
53 |
|
54 |
<div id="tabs" class="toptabs"> |
54 |
<div id="tabs" class="toptabs"> |
55 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
55 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
56 |
<ul> |
56 |
<ul class="nav nav-tabs" role="tablist"> |
57 |
<li><a href="#readingrec" id="tab_all">All</a></li> |
57 |
<li role="presentation" class="active"><a href="#readingrec" aria-controls="readingrec" role="tab" data-toggle="tab" data-tabname="all" id="tab_all">All</a></li> |
58 |
<li><a href="#readingrec" id="tab_checkout">Checkouts</a></li> |
58 |
<li role="presentation"><a href="#readingrec" aria-controls="readingrec" role="tab" data-toggle="tab" data-tabname="checkouts" id="tab_checkout">Checkouts</a></li> |
59 |
<li><a href="#readingrec" id="tab_onsite_checkout">On-site checkouts</a></li> |
59 |
<li role="presentation"><a href="#readingrec" aria-controls="readingrec" role="tab" data-toggle="tab" id="tab_onsite_checkout" data-tabname="onsite">On-site checkouts</a></li> |
60 |
</ul> |
60 |
</ul> |
|
|
61 |
<div class="tab-content"> |
62 |
<div id="readingrec" role="tabpanel" class="tab-pane active"> |
63 |
[% ELSE %] |
64 |
<div id="readingrec"> |
61 |
[% END %] |
65 |
[% END %] |
62 |
<div id="readingrec"> |
|
|
63 |
<table id="table_readingrec"> |
66 |
<table id="table_readingrec"> |
64 |
<thead> |
67 |
<thead> |
65 |
<tr> |
68 |
<tr> |
Lines 130-135
Link Here
|
130 |
</tbody> |
133 |
</tbody> |
131 |
</table> |
134 |
</table> |
132 |
</div> |
135 |
</div> |
|
|
136 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
137 |
</div> <!-- /.tab-content --> |
138 |
[% END %] |
133 |
</div> |
139 |
</div> |
134 |
[% END %] |
140 |
[% END %] |
135 |
|
141 |
|
Lines 156-171
Link Here
|
156 |
"aaSorting": [[10, 'desc']] |
162 |
"aaSorting": [[10, 'desc']] |
157 |
}, columns_settings); |
163 |
}, columns_settings); |
158 |
|
164 |
|
159 |
var tabs = $("#tabs").tabs({ |
165 |
$("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
160 |
activate: function(e, ui) { |
166 |
active_tab = $(this).data("tabname"); |
161 |
var active = tabs.tabs("option", "active" ); |
167 |
if( active_tab == "checkouts" ){ |
162 |
if ( active == 1 ) { |
168 |
table.fnFilter("standard_checkout", 0); |
163 |
table.fnFilter("standard_checkout", 0); |
169 |
} else if( active_tab == "onsite" ){ |
164 |
} else if ( active == 2 ) { |
170 |
table.fnFilter("onsite_checkout", 0); |
165 |
table.fnFilter("onsite_checkout", 0); |
171 |
} else { |
166 |
} else { // all |
172 |
table.fnFilter('', 0); |
167 |
table.fnFilter('', 0); |
|
|
168 |
} |
169 |
} |
173 |
} |
170 |
}); |
174 |
}); |
171 |
}); |
175 |
}); |
172 |
- |
|
|