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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt (-2 / +11 lines)
Lines 4-9 Link Here
4
[% INCLUDE 'calendar.inc' %]
4
[% INCLUDE 'calendar.inc' %]
5
<script type="text/javascript">
5
<script type="text/javascript">
6
//<![CDATA[
6
//<![CDATA[
7
8
function confirmDelete() {
9
  return confirm(_("Are you sure you want to delete this numbering pattern?"));
10
}
11
7
[% IF (new or modify) %]
12
[% IF (new or modify) %]
8
  function testPattern() {
13
  function testPattern() {
9
      var frequencyid = $("#frequency").val();
14
      var frequencyid = $("#frequency").val();
Lines 57-62 Link Here
57
function show_blocking_subs() {
62
function show_blocking_subs() {
58
    $("#blocking_subs").show();
63
    $("#blocking_subs").show();
59
}
64
}
65
$(document).ready(function(){
66
    $(".delete_pattern").on("click",function(){
67
        return confirmDelete();
68
    });
69
});
60
//]]>
70
//]]>
61
</script>
71
</script>
62
</head>
72
</head>
Lines 318-324 function show_blocking_subs() { Link Here
318
                  <td>[% numberpattern.displayorder %]</td>
328
                  <td>[% numberpattern.displayorder %]</td>
319
                  <td>
329
                  <td>
320
                    <a href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=modify&id=[% numberpattern.id %]">Edit</a> |
330
                    <a href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=modify&id=[% numberpattern.id %]">Edit</a> |
321
                    <a href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=del&id=[% numberpattern.id %]">Delete</a>
331
                    <a class="delete_pattern" href="/cgi-bin/koha/serials/subscription-numberpatterns.pl?op=del&id=[% numberpattern.id %]">Delete</a>
322
                  </td>
332
                  </td>
323
                </tr>
333
                </tr>
324
              [% END %]
334
              [% END %]
325
- 

Return to bug 15982