Bug 31203: Alter other cronjobs that currenlty use cronlogaction
[koha.git] / koha-tmpl / intranet-tmpl / prog / js / authorities-detail-modal.js
1 $(document).ready(function(){
2     $(".authority_preview a").on("click", function(e){
3         e.preventDefault();
4         var authid = $(this).data("authid");
5
6         $.get("/cgi-bin/koha/authorities/detail.pl", { authid : authid }, function( data ){
7             var auth_detail = $(data).find("#authoritiestabs");
8             auth_detail.find("ul").remove();
9             auth_detail.removeClass("toptabs");
10             auth_detail.find("> div").removeClass("tab-content");
11             auth_detail.find("> div > div").removeClass("tab-pane").removeAttr("role");
12             $("#authorityDetail .modal-title").html(__("Authority") + " " + authid );
13             $("#authorityDetail .modal-body").html( auth_detail );
14         });
15
16         $("#authorityDetail").modal("show");
17     });
18     $("#authorityDetail").on("hidden.bs.modal", function(){
19         $("#authorityDetail .modal-body, #authorityDetail .modal-title").html("");
20         $("#authorityDetail .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /></div>");
21     });
22 });