|
Lines 97-122
Link Here
|
| 97 |
var authtypecode = "[% authtypecode | html %]"; |
97 |
var authtypecode = "[% authtypecode | html %]"; |
| 98 |
</script> |
98 |
</script> |
| 99 |
[% Asset.js("js/auth-finder-search.js") | $raw %] |
99 |
[% Asset.js("js/auth-finder-search.js") | $raw %] |
|
|
100 |
[% Asset.js("js/authorities-detail-modal.js") | $raw %] |
| 100 |
<script> |
101 |
<script> |
| 101 |
$(document).ready(function(){ |
|
|
| 102 |
$(".authorizedheading a").on("click", function(e){ |
| 103 |
e.preventDefault(); |
| 104 |
var authid = $(this).data("authid"); |
| 105 |
|
| 106 |
$.get("/cgi-bin/koha/authorities/detail.pl", { authid : authid }, function( data ){ |
| 107 |
var auth_detail = $(data).find("#authoritiestabs"); |
| 108 |
auth_detail.find("ul").remove(); |
| 109 |
$("#authorityDetail .modal-title").html(_("Authority") + " " + authid ); |
| 110 |
$("#authorityDetail .modal-body").html( auth_detail ); |
| 111 |
}); |
| 112 |
|
| 113 |
$("#authorityDetail").modal("show"); |
| 114 |
}); |
| 115 |
$("#authorityDetail").on("hidden.bs.modal", function(){ |
| 116 |
$("#authorityDetail .modal-body, #authorityDetail .modal-title").html(""); |
| 117 |
$("#authorityDetail .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /></div>"); |
| 118 |
}); |
| 119 |
}); |
| 120 |
function jumpfull(page){ |
102 |
function jumpfull(page){ |
| 121 |
window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top'); |
103 |
window.open(page,'','width=100,height=100,resizable=yes,toolbar=false,scrollbars=yes,top'); |
| 122 |
} |
104 |
} |