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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-7 / +3 lines)
Lines 838-844 Link Here
838
                                        <th class="ci-collection">Collection</th>
838
                                        <th class="ci-collection">Collection</th>
839
                                        <th class="ci-patron">Patron</th>
839
                                        <th class="ci-patron">Patron</th>
840
                                        <th class="ci-note">Note</th>
840
                                        <th class="ci-note">Note</th>
841
                                        <th class="ci-printslip">&nbsp;</th>
842
                                    </tr>
841
                                    </tr>
843
                                </thead>
842
                                </thead>
844
843
Lines 909-914 Link Here
909
                                                        </span>
908
                                                        </span>
910
                                                    </span>
909
                                                    </span>
911
                                                [% END %]
910
                                                [% END %]
911
                                                <a class="btn btn-default btn-xs printcheckinslip" href="#" data-borrowernumber="[% riloo.patron.borrowernumber | html %]"><i class="fa fa-print"></i> Print checkin slip</a>
912
                                            [% ELSE %]
912
                                            [% ELSE %]
913
                                                Not checked out
913
                                                Not checked out
914
                                            [% END %]
914
                                            [% END %]
Lines 924-932 Link Here
924
                                                <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
924
                                                <p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</span></p>
925
                                            [% END %]
925
                                            [% END %]
926
                                        </td>
926
                                        </td>
927
                                        <td class="ci-printslip actions">
928
                                            <a id="printcheckinslip" href="#" class="btn btn-default" data-borrowernumber="[% riloo.patron.borrowernumber | html %]"><i class="fa fa-print"></i> Print checkin slip</a>
929
                                        </td>
930
                                    </tr>
927
                                    </tr>
931
                                [% END # /FOREACH riloo %]
928
                                [% END # /FOREACH riloo %]
932
                            </table> <!-- /#checkedintable -->
929
                            </table> <!-- /#checkedintable -->
Lines 1125-1134 Link Here
1125
            });
1122
            });
1126
            $('[data-toggle="tooltip"]').tooltip();
1123
            $('[data-toggle="tooltip"]').tooltip();
1127
1124
1128
            $("#printcheckinslip").click(function(){
1125
            $(".printcheckinslip").on("click", function(e){
1126
                e.preventDefault();
1129
                var borrowernumber = $(this).data('borrowernumber');
1127
                var borrowernumber = $(this).data('borrowernumber');
1130
                window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&amp;print=checkinslip", "printwindow");
1128
                window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&amp;print=checkinslip", "printwindow");
1131
                return false;
1132
            });
1129
            });
1133
1130
1134
        });
1131
        });
1135
- 

Return to bug 12224