Lines 1-36
Link Here
|
|
|
1 |
[% SET footerjs = 1 %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Serials › [% title |html %] › [% IF ( op ) %]Create Routing List[% ELSE %]Edit routing list[% END %]</title> |
3 |
<title>Koha › Serials › [% title |html %] › [% IF ( op ) %]Create Routing List[% ELSE %]Edit routing list[% END %]</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
<script type="text/javascript"> |
|
|
5 |
$(document).ready(function(){ |
6 |
$("#add_recipients").on("click",function(e){ |
7 |
e.preventDefault(); |
8 |
userPopup(); |
9 |
}); |
10 |
$(".itemrank").on("change",function(){ |
11 |
var subscriptionid = $(this).data("subscriptionid"); |
12 |
var routingid = $(this).data("routingid"); |
13 |
reorder_item( subscriptionid, routingid, $(this).val()); |
14 |
}); |
15 |
}); |
16 |
function reorder_item(sid,rid,rank){ |
17 |
var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank; |
18 |
window.location.href=mylocation; |
19 |
} |
20 |
|
21 |
function userPopup() { |
22 |
window.open("/cgi-bin/koha/serials/add_user_search.pl", |
23 |
'PatronPopup', |
24 |
'width=740,height=450,location=yes,toolbar=no,' |
25 |
+ 'scrollbars=yes,resize=yes' |
26 |
); |
27 |
} |
28 |
|
29 |
function add_user(borrowernumber) { |
30 |
var myurl = "routing.pl?subscriptionid="+[% subscriptionid %]+"&borrowernumber="+borrowernumber+"&op=add"; |
31 |
window.location.href = myurl; |
32 |
} |
33 |
</script> |
34 |
</head> |
5 |
</head> |
35 |
<body id="ser_routing" class="ser"> |
6 |
<body id="ser_routing" class="ser"> |
36 |
[% INCLUDE 'header.inc' %] |
7 |
[% INCLUDE 'header.inc' %] |
Lines 115-118
function reorder_item(sid,rid,rank){
Link Here
|
115 |
[% INCLUDE 'serials-menu.inc' %] |
86 |
[% INCLUDE 'serials-menu.inc' %] |
116 |
</div> |
87 |
</div> |
117 |
</div> |
88 |
</div> |
|
|
89 |
|
90 |
[% MACRO jsinclude BLOCK %] |
91 |
<script type="text/javascript"> |
92 |
$(document).ready(function(){ |
93 |
$("#add_recipients").on("click",function(e){ |
94 |
e.preventDefault(); |
95 |
userPopup(); |
96 |
}); |
97 |
$(".itemrank").on("change",function(){ |
98 |
var subscriptionid = $(this).data("subscriptionid"); |
99 |
var routingid = $(this).data("routingid"); |
100 |
reorder_item( subscriptionid, routingid, $(this).val()); |
101 |
}); |
102 |
}); |
103 |
function reorder_item(sid,rid,rank){ |
104 |
var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank; |
105 |
window.location.href=mylocation; |
106 |
} |
107 |
|
108 |
function userPopup() { |
109 |
window.open("/cgi-bin/koha/serials/add_user_search.pl", |
110 |
'PatronPopup', |
111 |
'width=740,height=450,location=yes,toolbar=no,' |
112 |
+ 'scrollbars=yes,resize=yes' |
113 |
); |
114 |
} |
115 |
|
116 |
function add_user(borrowernumber) { |
117 |
var myurl = "routing.pl?subscriptionid="+[% subscriptionid %]+"&borrowernumber="+borrowernumber+"&op=add"; |
118 |
window.location.href = myurl; |
119 |
} |
120 |
</script> |
121 |
[% END %] |
122 |
|
118 |
[% INCLUDE 'intranet-bottom.inc' %] |
123 |
[% INCLUDE 'intranet-bottom.inc' %] |
119 |
- |
|
|