|
Lines 142-148
$(document).ready(function() {
Link Here
|
| 142 |
page += '&is_html='+encodeURIComponent(is_html); |
142 |
page += '&is_html='+encodeURIComponent(is_html); |
| 143 |
$("#preview_template .modal-body").load(page); |
143 |
$("#preview_template .modal-body").load(page); |
| 144 |
$('#preview_template').modal('show'); |
144 |
$('#preview_template').modal('show'); |
| 145 |
$("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?module="+module+"&code="+code+"&mtt="+mtt+"&lang="+lang); |
145 |
$("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?code="+code+"&mtt="+mtt+"&lang="+lang); |
| 146 |
}); |
146 |
}); |
| 147 |
$("#preview_template").on("hidden", function(){ |
147 |
$("#preview_template").on("hidden", function(){ |
| 148 |
$("#preview_template_label").html(""); |
148 |
$("#preview_template_label").html(""); |
|
Lines 167-173
$(document).ready(function() {
Link Here
|
| 167 |
page += '&is_html='+encodeURIComponent(is_html); |
167 |
page += '&is_html='+encodeURIComponent(is_html); |
| 168 |
$("#preview_template .modal-body").load(page + " div"); |
168 |
$("#preview_template .modal-body").load(page + " div"); |
| 169 |
$('#preview_template').modal('show'); |
169 |
$('#preview_template').modal('show'); |
| 170 |
$("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?module="+module+"&code="+code+"&branchcode="+branchcode+"&mtt="+mtt+"&lang="+lang); |
170 |
$("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?code="+code+"&branchcode="+branchcode+"&mtt="+mtt+"&lang="+lang); |
| 171 |
}); |
171 |
}); |
| 172 |
$("#convert_template").on("hidden", function(){ |
172 |
$("#convert_template").on("hidden", function(){ |
| 173 |
$("#convert_template_label").html(""); |
173 |
$("#convert_template_label").html(""); |
| 174 |
- |
|
|