|
Lines 7-12
Link Here
|
| 7 |
<title>Koha › Patron search</title> |
7 |
<title>Koha › Patron search</title> |
| 8 |
[% INCLUDE 'doc-head-close.inc' %] |
8 |
[% INCLUDE 'doc-head-close.inc' %] |
| 9 |
[% Asset.css("css/datatables.css") | $raw %] |
9 |
[% Asset.css("css/datatables.css") | $raw %] |
|
|
10 |
<style> .modal-body .close { display: none; } </style> |
| 10 |
</head> |
11 |
</head> |
| 11 |
|
12 |
|
| 12 |
<body id="common_patron_search" class="common"> |
13 |
<body id="common_patron_search" class="common"> |
|
Lines 89-94
Link Here
|
| 89 |
|
90 |
|
| 90 |
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div> |
91 |
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div> |
| 91 |
|
92 |
|
|
|
93 |
<!-- Patron preview modal --> |
| 94 |
<div class="modal" id="patronPreview" tabindex="-1" role="dialog" aria-labelledby="patronPreviewLabel"> |
| 95 |
<div class="modal-dialog" role="document"> |
| 96 |
<div class="modal-content"> |
| 97 |
<div class="modal-header"> |
| 98 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
| 99 |
<h4 class="modal-title" id="patronPreviewLabel"></h4> |
| 100 |
</div> |
| 101 |
<div class="modal-body"> |
| 102 |
<div id="loading"> |
| 103 |
<img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading |
| 104 |
</div> |
| 105 |
<div id="patronPreviewContent"> |
| 106 |
</div> |
| 107 |
</div> |
| 108 |
<div class="modal-footer"> |
| 109 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
| 110 |
</div> |
| 111 |
</div> |
| 112 |
</div> |
| 113 |
</div> |
| 114 |
|
| 115 |
</div> |
| 116 |
</div> |
| 117 |
|
| 92 |
[% MACRO jsinclude BLOCK %] |
118 |
[% MACRO jsinclude BLOCK %] |
| 93 |
[% INCLUDE 'datatables.inc' %] |
119 |
[% INCLUDE 'datatables.inc' %] |
| 94 |
|
120 |
|
|
Lines 200-205
Link Here
|
| 200 |
select_user( borrowernumber, JSON.parse(borrower_data) ); |
226 |
select_user( borrowernumber, JSON.parse(borrower_data) ); |
| 201 |
}); |
227 |
}); |
| 202 |
|
228 |
|
|
|
229 |
$("body").on("click",".patron_preview", function( e ){ |
| 230 |
e.preventDefault(); |
| 231 |
var borrowernumber = $(this).data("borrowernumber"); |
| 232 |
var page = "/cgi-bin/koha/members/moremember.pl?print=brief&borrowernumber=" + borrowernumber; |
| 233 |
$("#patronPreviewContent").load( page + " div.container-fluid", function() { |
| 234 |
$("#loading").hide(); |
| 235 |
}); |
| 236 |
|
| 237 |
$('#patronPreview').modal({ show:true }); |
| 238 |
}); |
| 239 |
|
| 240 |
$("#patronPreview").on('hidden.bs.modal', function (e) { |
| 241 |
$("#patronPreviewContent").html(""); |
| 242 |
$("#loading").show(); |
| 243 |
}); |
| 244 |
|
| 203 |
}); |
245 |
}); |
| 204 |
|
246 |
|
| 205 |
function filter() { |
247 |
function filter() { |