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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (-6 / +5 lines)
Lines 18-25 Link Here
18
            ]
18
            ]
19
        }));
19
        }));
20
20
21
        $("a.delete_item").click(function(){
21
        $(".delete_item").click(function(){
22
            return confirm( _("Are you sure you want to remove this item from the course?"));
22
            return confirmDelete(_("Are you sure you want to remove this item from the course?"));
23
        });
23
        });
24
24
25
        $("#delete_course").click(function(){
25
        $("#delete_course").click(function(){
Lines 207-217 Link Here
207
207
208
                                    [% IF CAN_user_coursereserves_delete_reserves %]
208
                                    [% IF CAN_user_coursereserves_delete_reserves %]
209
                                        [% IF cr.item.onloan %]
209
                                        [% IF cr.item.onloan %]
210
                                            <a class="btn btn-default btn-xs disabled checkedout" href="#" class="delete_item" data-toggle="tooltip" data-placement="left" title="This item is checked out">
210
                                            <a class="btn btn-default btn-xs disabled checkedout delete_item" href="#" data-toggle="tooltip" data-placement="left" title="This item is checked out">
211
                                        [% ELSIF cr.item.itemlost %]
211
                                        [% ELSIF cr.item.itemlost %]
212
                                            <a class="btn btn-default btn-xs disabled itemlost" href="#" class="delete_item" data-toggle="tooltip" data-placement="left" title="This item is lost">
212
                                            <a class="btn btn-default btn-xs disabled itemlost delete_item" href="#" data-toggle="tooltip" data-placement="left" title="This item is lost">
213
                                        [% ELSE %]
213
                                        [% ELSE %]
214
                                            <a class="btn btn-default btn-xs" href="course-details.pl?course_id=[% course.course_id %]&amp;action=del_reserve&amp;cr_id=[% cr.cr_id %]" class="delete_item" >
214
                                            <a class="btn btn-default btn-xs delete_item" href="course-details.pl?course_id=[% course.course_id %]&amp;action=del_reserve&amp;cr_id=[% cr.cr_id %]">
215
                                        [% END %]
215
                                        [% END %]
216
                                        <i class="fa fa-trash"></i> Remove</a>
216
                                        <i class="fa fa-trash"></i> Remove</a>
217
                                    [% END %]
217
                                    [% END %]
218
- 

Return to bug 19228