|
Lines 44-53
function check_form() {
Link Here
|
| 44 |
return false; |
44 |
return false; |
| 45 |
} |
45 |
} |
| 46 |
|
46 |
|
| 47 |
function show_blocking_subs() { |
|
|
| 48 |
$("#blocking_subs").show(); |
| 49 |
} |
| 50 |
|
| 51 |
$(document).ready(function() { |
47 |
$(document).ready(function() { |
| 52 |
$("#issuesperunit").change(function() { |
48 |
$("#issuesperunit").change(function() { |
| 53 |
var value = $(this).val(); |
49 |
var value = $(this).val(); |
|
Lines 64-69
$(document).ready(function() {
Link Here
|
| 64 |
$(".delete_frequency").on("click",function(){ |
60 |
$(".delete_frequency").on("click",function(){ |
| 65 |
return confirmDelete(); |
61 |
return confirmDelete(); |
| 66 |
}); |
62 |
}); |
|
|
63 |
$("#add_frequency_form").on("submit",function(){ |
| 64 |
return check_form(); |
| 65 |
}); |
| 66 |
$("#show_blocking_subs").on("click",function(e){ |
| 67 |
e.preventDefault(); |
| 68 |
$("#blocking_subs").show(); |
| 69 |
}); |
| 67 |
}); |
70 |
}); |
| 68 |
//]]> |
71 |
//]]> |
| 69 |
</script> |
72 |
</script> |
|
Lines 99-105
$(document).ready(function() {
Link Here
|
| 99 |
[% ELSE %] |
102 |
[% ELSE %] |
| 100 |
<h1>Edit frequency: [% description %]</h1> |
103 |
<h1>Edit frequency: [% description %]</h1> |
| 101 |
[% END %] |
104 |
[% END %] |
| 102 |
<form action="/cgi-bin/koha/serials/subscription-frequencies.pl" method="post" onsubmit="return check_form();"> |
105 |
<form action="/cgi-bin/koha/serials/subscription-frequencies.pl" id="add_frequency_form" method="post"> |
| 103 |
[% IF (modify) %] |
106 |
[% IF (modify) %] |
| 104 |
<input type="hidden" name="id" value="[% id %]" /> |
107 |
<input type="hidden" name="id" value="[% id %]" /> |
| 105 |
<input type="hidden" name="op" value="savemod" /> |
108 |
<input type="hidden" name="op" value="savemod" /> |
|
Lines 168-174
$(document).ready(function() {
Link Here
|
| 168 |
This frequency is still used by [% subscriptions.size %] |
171 |
This frequency is still used by [% subscriptions.size %] |
| 169 |
subscription(s). Do you still want to delete it? |
172 |
subscription(s). Do you still want to delete it? |
| 170 |
</p> |
173 |
</p> |
| 171 |
<p><a href="#" onclick="show_blocking_subs(); return false;">Show subscriptions</a></p> |
174 |
<p><a href="#" id="show_blocking_subs">Show subscriptions</a></p> |
| 172 |
<ul id="blocking_subs" style="display:none"> |
175 |
<ul id="blocking_subs" style="display:none"> |
| 173 |
[% FOREACH sub IN subscriptions %] |
176 |
[% FOREACH sub IN subscriptions %] |
| 174 |
<li style="list-style-type:none"> |
177 |
<li style="list-style-type:none"> |