Lines 490-507
Link Here
|
490 |
|
490 |
|
491 |
[% IF op == 'list' %] |
491 |
[% IF op == 'list' %] |
492 |
<h1>Lists</h1> |
492 |
<h1>Lists</h1> |
493 |
<div id="tabs" class="toptabs"> |
493 |
|
494 |
<ul class="nav nav-tabs" role="tablist"> |
494 |
[% WRAPPER tabs id= "tabs" %] |
495 |
<li id="privateshelves_tab" role="presentation" class="active"> |
495 |
[% WRAPPER tabs_nav %] |
496 |
<a href="#shelves_list" aria-controls="shelves_list" role="tab" data-toggle="tab" data-public="0">Your lists</a> |
496 |
[% WRAPPER tab_item tabname= "privateshelves_tab" bt_active= 1 %] <span>Your lists</span> [% END %] |
497 |
</li> |
497 |
[% WRAPPER tab_item tabname= "publicshelves_tab" %] <span>Public lists</span> [% END %] |
498 |
<li id="publicshelves_tab" role="presentation"> |
498 |
[% END # /WRAPPER tabs_nav %] |
499 |
<a href="#shelves_list" aria-controls="shelves_list" role="tab" data-toggle="tab" data-public="1">Public lists</a> |
499 |
|
500 |
</li> |
500 |
[% WRAPPER tab_panels %] |
501 |
</ul> |
501 |
[% WRAPPER tab_panel tabname="shelves_tab" bt_active= 1 %] |
502 |
|
|
|
503 |
<div class="tab-content"> |
504 |
<div role="tabpanel" class="tab-pane active" id="shelves_list"> |
505 |
<table id="listresultst"> |
502 |
<table id="listresultst"> |
506 |
<thead> |
503 |
<thead> |
507 |
<tr> |
504 |
<tr> |
Lines 538-546
Link Here
|
538 |
</thead> |
535 |
</thead> |
539 |
<tbody></tbody> |
536 |
<tbody></tbody> |
540 |
</table> <!-- /#listresultst --> |
537 |
</table> <!-- /#listresultst --> |
541 |
</div> <!-- /#shelves_list --> |
538 |
[% END %] |
542 |
</div> <!-- #/.tab-content --> |
539 |
[% END # /WRAPPER tab_panels %] |
543 |
</div> <!-- /#tabs --> |
540 |
[% END # /WRAPPER tabs %] |
|
|
541 |
|
544 |
[% END # /IF op == 'list' %] |
542 |
[% END # /IF op == 'list' %] |
545 |
|
543 |
|
546 |
<form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl"> |
544 |
<form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl"> |
Lines 695-708
Link Here
|
695 |
|
693 |
|
696 |
/* Select correct tab based on URL parameter */ |
694 |
/* Select correct tab based on URL parameter */ |
697 |
if( public == 0 ){ |
695 |
if( public == 0 ){ |
698 |
$('#privateshelves_tab').tab('show'); |
696 |
$('a[href="#privateshelves_tab_panel"]').tab('show'); |
699 |
} else { |
697 |
} else { |
700 |
$("#publicshelves_tab").tab("show"); |
698 |
$('a[href="#publicshelves_tab_panel"]').tab("show"); |
701 |
} |
699 |
} |
702 |
|
700 |
|
703 |
$('a[data-toggle="tab"]') |
701 |
$('a[data-toggle="tab"]').on("click", function(e){ |
704 |
.on("click", function(){ |
702 |
let target = $(this).attr("href"); |
705 |
public = $(this).data("public"); |
703 |
if( target == "#publicshelves_tab_panel" ){ |
|
|
704 |
public = 1; |
705 |
} else { |
706 |
public = 0; |
707 |
} |
706 |
}) |
708 |
}) |
707 |
.on('shown.bs.tab', function (e) { |
709 |
.on('shown.bs.tab', function (e) { |
708 |
dtListResults.fnDraw(); |
710 |
dtListResults.fnDraw(); |
709 |
- |
|
|