Lines 5-14
Link Here
|
5 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
6 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
7 |
[% INCLUDE 'datatables.inc' %] |
7 |
[% INCLUDE 'datatables.inc' %] |
|
|
8 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script> |
8 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.insertatcaret.js"></script> |
9 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.insertatcaret.js"></script> |
9 |
<script type="text/javascript"> |
10 |
<script type="text/javascript"> |
10 |
//<![CDATA[ |
11 |
//<![CDATA[ |
11 |
$(document).ready(function() { |
12 |
$(document).ready(function() { |
|
|
13 |
[% IF add_form or copy_form %] |
14 |
$('#toolbar').fixFloat(); |
15 |
[% END %] |
12 |
$("#lettert:has(tbody tr)").dataTable($.extend(true, {}, dataTablesDefaults, { |
16 |
$("#lettert:has(tbody tr)").dataTable($.extend(true, {}, dataTablesDefaults, { |
13 |
"sDom": 't', |
17 |
"sDom": 't', |
14 |
"aoColumnDefs": [ |
18 |
"aoColumnDefs": [ |
Lines 112-117
$(document).ready(function() {
Link Here
|
112 |
}) |
116 |
}) |
113 |
|
117 |
|
114 |
$("#tabs").tabs(); |
118 |
$("#tabs").tabs(); |
|
|
119 |
|
120 |
$("#saveandcontinue").on("click",function(e){ |
121 |
e.preventDefault(); |
122 |
$("#redirect").val("just_save"); |
123 |
$("#submit_form").click(); |
124 |
}); |
125 |
|
115 |
}); |
126 |
}); |
116 |
[% IF add_form or copy_form %] |
127 |
[% IF add_form or copy_form %] |
117 |
|
128 |
|
Lines 260-265
$(document).ready(function() {
Link Here
|
260 |
|
271 |
|
261 |
[% IF add_form or copy_form %] |
272 |
[% IF add_form or copy_form %] |
262 |
<h1>[% IF ( modify ) %]Modify notice[% ELSE %]Add notice[% END %]</h1> |
273 |
<h1>[% IF ( modify ) %]Modify notice[% ELSE %]Add notice[% END %]</h1> |
|
|
274 |
|
275 |
<div id="toolbar" class="btn-toolbar"> |
276 |
<div class="btn-group"> |
277 |
<button class="btn btn-default btn-sm" id="submit_form"><i class="fa fa-save"></i> Save</button> |
278 |
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"> |
279 |
<span class="caret"></span> |
280 |
</button> |
281 |
<ul class="dropdown-menu"> |
282 |
<li><a id="saveandcontinue" href="#">Save and continue editing</a></li> |
283 |
</ul> |
284 |
</div> |
285 |
<a class="btn btn-default btn-sm cancel" href="/cgi-bin/koha/tools/letter.pl"><i class="fa fa-remove"></i> Cancel</a> |
286 |
</div> |
287 |
|
263 |
<form id="add_notice" name="Aform" method="post" enctype="multipart/form-data" class="validate"> |
288 |
<form id="add_notice" name="Aform" method="post" enctype="multipart/form-data" class="validate"> |
264 |
[% IF add_form %] |
289 |
[% IF add_form %] |
265 |
<input type="hidden" name="op" id="op" value="add_validate" /> |
290 |
<input type="hidden" name="op" id="op" value="add_validate" /> |
Lines 469-476
$(document).ready(function() {
Link Here
|
469 |
[% END %] |
494 |
[% END %] |
470 |
|
495 |
|
471 |
[% IF code.search('DGST') %] <span class="overdue">Warning, this is a template for a Digest, as such, any references to branch data ( e.g. branches.branchname ) will refer to the borrower's home branch.</span> [% END %] |
496 |
[% IF code.search('DGST') %] <span class="overdue">Warning, this is a template for a Digest, as such, any references to branch data ( e.g. branches.branchname ) will refer to the borrower's home branch.</span> [% END %] |
472 |
<fieldset class="action"><input type="submit" id="submit_form" value="Submit" class="button" /> <a class="cancel" href="/cgi-bin/koha/tools/letter.pl">Cancel</a></fieldset> |
497 |
|
473 |
<input type="hidden" name="searchfield" value="[% searchfield %]" /> |
498 |
<input type="hidden" id="redirect" name="redirect" value="" /> |
|
|
499 |
<input type="hidden" name="searchfield" value="[% searchfield %]" /> |
474 |
</form> |
500 |
</form> |
475 |
[% END %] |
501 |
[% END %] |
476 |
|
502 |
|