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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tt (-3 / +13 lines)
Lines 1-7 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Serials &rsaquo; Select vendor</title>
2
<title>Koha &rsaquo; Serials &rsaquo; 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
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/tables/members_results.tt (-2 / +1 lines)
Lines 13-19 Link Here
13
                "dt_branch":
13
                "dt_branch":
14
                    "[% data.branchname |html %]",
14
                    "[% data.branchname |html %]",
15
                "dt_action":
15
                "dt_action":
16
                    "<a href=\"#\" onclick='add_user(\"[% data.borrowernumber %]\", \"[% data.firstname %] [% data.surname %]\"); return false;'>Add</a>"
16
                    "<a href=\"#\" class=\"add_user btn btn-mini\" data-borrowernumber=\"[% data.borrowernumber %]\" data-firstname=\"[% data.firstname %]\" data-surname=\"[% data.surname %]\">Add</a>"
17
            }[% UNLESS loop.last %],[% END %]
17
            }[% UNLESS loop.last %],[% END %]
18
        [% END %]
18
        [% END %]
19
    ]
19
    ]
20
- 

Return to bug 16968