View | Details | Raw Unified | Return to bug 16967
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-frequencies.tt (-6 / +9 lines)
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">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt (-3 / +9 lines)
Lines 66-71 $(document).ready(function(){ Link Here
66
    $(".delete_pattern").on("click",function(){
66
    $(".delete_pattern").on("click",function(){
67
        return confirmDelete();
67
        return confirmDelete();
68
    });
68
    });
69
    $("#show_blocking_subs").on("click",function(e){
70
        e.preventDefault();
71
        $("#blocking_subs").show();
72
    });
73
    $("#test_pattern").on("click",function(){
74
         testPattern();
75
    });
69
});
76
});
70
//]]>
77
//]]>
71
</script>
78
</script>
Lines 284-290 $(document).ready(function(){ Link Here
284
                </tbody>
291
                </tbody>
285
              </table>
292
              </table>
286
              <fieldset class="action">
293
              <fieldset class="action">
287
              <input type="button" value="Test pattern" onclick="testPattern();" />
294
              <input type="button" id="test_pattern" value="Test pattern" />
288
              </fieldset>
295
              </fieldset>
289
              <div id="predictionpattern"></div>
296
              <div id="predictionpattern"></div>
290
            </fieldset>
297
            </fieldset>
Lines 298-304 $(document).ready(function(){ Link Here
298
                    This pattern is still used by [% subscriptions.size %]
305
                    This pattern is still used by [% subscriptions.size %]
299
                    subscription(s). Do you still want to delete it?
306
                    subscription(s). Do you still want to delete it?
300
                </p>
307
                </p>
301
                <p><a href="#" onclick="show_blocking_subs(); return false;">Show subscriptions</a></p>
308
                <p><a href="#" id="show_blocking_subs">Show subscriptions</a></p>
302
                <ul id="blocking_subs" style="display:none">
309
                <ul id="blocking_subs" style="display:none">
303
                    [% FOREACH sub IN subscriptions %]
310
                    [% FOREACH sub IN subscriptions %]
304
                        <li style="list-style-type:none">
311
                        <li style="list-style-type:none">
305
- 

Return to bug 16967