Lines 165-182
Link Here
|
165 |
<div id="toolbar" class="btn-toolbar"> |
165 |
<div id="toolbar" class="btn-toolbar"> |
166 |
<div class="btn-group"> |
166 |
<div class="btn-group"> |
167 |
<button class="btn btn-default" id="submit_form"><i class="fa fa-save"></i> Save</button> |
167 |
<button class="btn btn-default" id="submit_form"><i class="fa fa-save"></i> Save</button> |
|
|
168 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
169 |
<span class="caret"></span> |
170 |
</button> |
171 |
<ul class="dropdown-menu"> |
172 |
<li><a id="saveandcontinue" href="#">Save and continue editing</a></li> |
173 |
</ul> |
168 |
</div> |
174 |
</div> |
169 |
[% IF category == 'news' %] |
175 |
[% IF category == 'news' %] |
170 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl"><i class="fa fa-remove"></i> Cancel</a> |
176 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl"><i class="fa fa-remove"></i> Cancel</a> |
171 |
[% ELSE %] |
177 |
[% ELSE %] |
172 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations"><i class="fa fa-remove"></i> Cancel</a> |
178 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations"><i class="fa fa-remove"></i> Cancel</a> |
173 |
[% END %] |
179 |
[% END %] |
174 |
</div> |
180 |
</div> <!-- /#toolbar --> |
175 |
|
181 |
|
176 |
<form id="add_additional_content" method="post" action="/cgi-bin/koha/tools/additional-contents.pl" class="validate"> |
182 |
<form id="add_additional_content" method="post" action="/cgi-bin/koha/tools/additional-contents.pl" class="validate"> |
177 |
<input type="hidden" name="op" value="add_validate" /> |
183 |
<input type="hidden" name="op" value="add_validate" /> |
178 |
<input type="hidden" name="id" value="[% additional_content.idnew | html %]" /> |
184 |
<input type="hidden" name="id" value="[% additional_content.idnew | html %]" /> |
179 |
<input type="hidden" name="category" value="[% category | html %]" /> |
185 |
<input type="hidden" name="category" value="[% category | html %]" /> |
|
|
186 |
<input type="hidden" id="redirect" name="redirect" value="" /> |
187 |
<input type="hidden" id="editmode" name="editmode" value="[% editmode | html %]" /> |
180 |
<fieldset class="rows"> |
188 |
<fieldset class="rows"> |
181 |
<ol> |
189 |
<ol> |
182 |
<li> |
190 |
<li> |
Lines 439-447
Link Here
|
439 |
[% INCLUDE 'calendar.inc' %] |
447 |
[% INCLUDE 'calendar.inc' %] |
440 |
[% Asset.js("js/tools-menu.js") | $raw %] |
448 |
[% Asset.js("js/tools-menu.js") | $raw %] |
441 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
449 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
|
|
450 |
<script> |
451 |
$("#saveandcontinue").on("click",function(e){ |
452 |
e.preventDefault(); |
453 |
$("#redirect").val("just_save"); |
454 |
$("#submit_form").click(); |
455 |
}); |
456 |
</script> |
442 |
[% IF additional_contents.count %] |
457 |
[% IF additional_contents.count %] |
443 |
[% INCLUDE 'datatables.inc' %] |
458 |
[% INCLUDE 'datatables.inc' %] |
444 |
<script> |
459 |
<script> |
|
|
460 |
|
445 |
$('.preview_news').click( function() { |
461 |
$('.preview_news').click( function() { |
446 |
modalNumber = $(this).attr('data-number'); |
462 |
modalNumber = $(this).attr('data-number'); |
447 |
$('.modal[data-number="'+modalNumber+'"]').modal('show'); |
463 |
$('.modal[data-number="'+modalNumber+'"]').modal('show'); |