|
Lines 574-580
Link Here
|
| 574 |
page += '&is_html='+encodeURIComponent(is_html); |
574 |
page += '&is_html='+encodeURIComponent(is_html); |
| 575 |
$("#preview_template .modal-body").load(page); |
575 |
$("#preview_template .modal-body").load(page); |
| 576 |
$('#preview_template').modal('show'); |
576 |
$('#preview_template').modal('show'); |
| 577 |
$("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?module="+module+"&code="+code+"&mtt="+mtt+"&lang="+lang); |
577 |
$("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?code="+code+"&mtt="+mtt+"&lang="+lang); |
| 578 |
}); |
578 |
}); |
| 579 |
$("#preview_template").on("hidden", function(){ |
579 |
$("#preview_template").on("hidden", function(){ |
| 580 |
$("#preview_template_label").html(""); |
580 |
$("#preview_template_label").html(""); |
|
Lines 599-605
Link Here
|
| 599 |
page += '&is_html='+encodeURIComponent(is_html); |
599 |
page += '&is_html='+encodeURIComponent(is_html); |
| 600 |
$("#preview_template .modal-body").load(page + " div"); |
600 |
$("#preview_template .modal-body").load(page + " div"); |
| 601 |
$('#preview_template').modal('show'); |
601 |
$('#preview_template').modal('show'); |
| 602 |
$("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?module="+module+"&code="+code+"&branchcode="+branchcode+"&mtt="+mtt+"&lang="+lang); |
602 |
$("#preview_template_button").attr("href", "/cgi-bin/koha/svc/letters/convert?code="+code+"&branchcode="+branchcode+"&mtt="+mtt+"&lang="+lang); |
| 603 |
}); |
603 |
}); |
| 604 |
$("#convert_template").on("hidden", function(){ |
604 |
$("#convert_template").on("hidden", function(){ |
| 605 |
$("#convert_template_label").html(""); |
605 |
$("#convert_template_label").html(""); |
| 606 |
- |
|
|