Lines 1-7
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Serials › Select vendor</title> |
2 |
<title>Koha › Serials › Select vendor</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
<script type="text/javascript" language="Javascript"> |
4 |
<script type="text/javascript"> |
5 |
|
5 |
|
6 |
function GetIt(aqbooksellerid,name) |
6 |
function GetIt(aqbooksellerid,name) |
7 |
{ |
7 |
{ |
Lines 9-14
function GetIt(aqbooksellerid,name)
Link Here
|
9 |
opener.document.f.aqbooksellername.value = name; |
9 |
opener.document.f.aqbooksellername.value = name; |
10 |
window.close(); |
10 |
window.close(); |
11 |
} |
11 |
} |
|
|
12 |
$(document).ready(function(){ |
13 |
$(".select_vendor").on("click",function(e){ |
14 |
e.preventDefault(); |
15 |
var vendorname = $(this).data("vendorname"); |
16 |
var vendorid = $(this).data("vendorid"); |
17 |
GetIt( vendorid, vendorname ); |
18 |
}); |
19 |
}); |
12 |
</script> |
20 |
</script> |
13 |
</head> |
21 |
</head> |
14 |
<body id="ser_acqui-search-result" class="ser"> |
22 |
<body id="ser_acqui-search-result" class="ser"> |
Lines 29-41
function GetIt(aqbooksellerid,name)
Link Here
|
29 |
[% FOREACH loop_supplier IN loop_suppliers %] |
37 |
[% FOREACH loop_supplier IN loop_suppliers %] |
30 |
<tr> |
38 |
<tr> |
31 |
<td>[% loop_supplier.name %]</td> |
39 |
<td>[% loop_supplier.name %]</td> |
32 |
<td><a href="#" onclick="GetIt([% loop_supplier.aqbooksellerid %],$(this).parent().prev().text())">Choose</a></td> |
40 |
<td><a class="btn btn-mini select_vendor" href="#" data-vendorid="[% loop_supplier.aqbooksellerid %]" data-vendorname="[% loop_supplier.name |html%]">Choose</a></td> |
33 |
</tr> |
41 |
</tr> |
34 |
[% END %] |
42 |
[% END %] |
35 |
</table> |
43 |
</table> |
36 |
[% END %] |
44 |
[% END %] |
37 |
|
45 |
|
38 |
<p><a href="/cgi-bin/koha/serials/acqui-search.pl">Perform a new search</a> <a class="button" href="#" onclick="window.close()">Close</a></p> |
46 |
<p><a href="/cgi-bin/koha/serials/acqui-search.pl">Perform a new search</a></p> |
|
|
47 |
|
48 |
<div id="closewindow"><a href="#" class="btn btn-default close">Cancel</a></div> |
39 |
|
49 |
|
40 |
</div> |
50 |
</div> |
41 |
|
51 |
|