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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc (-1 / +6 lines)
Lines 220-230 Link Here
220
                        <em>"[% patron_message.message | html %]"</em>
220
                        <em>"[% patron_message.message | html %]"</em>
221
                    </span>
221
                    </span>
222
                    [% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %]
222
                    [% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %]
223
                        <a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&amp;borrowernumber=[% patron_message.borrowernumber | html %]&amp;from=moremember" onclick='return confirm(_("Are you sure you want to delete this message? This cannot be undone."));'><i class="fa fa-trash"></i> Delete</a>
223
                        <a class="btn btn-link delete_message" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&amp;borrowernumber=[% patron_message.borrowernumber | html %]&amp;from=moremember"><i class="fa fa-trash"></i> Delete</a>
224
                    [% END %]
224
                    [% END %]
225
                </li>
225
                </li>
226
            [% END %]
226
            [% END %]
227
        </ul>
227
        </ul>
228
        <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
228
        <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
229
    </div> <!-- /#messages -->
229
    </div> <!-- /#messages -->
230
    <script>
231
        function confirm_message_deletion() {
232
            return confirm(_("Are you sure you want to delete this message? This cannot be undone."));
233
        }
234
    </script>
230
[% END # /IF patron_messages %]
235
[% END # /IF patron_messages %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js (-1 / +4 lines)
Lines 47-52 $(document).ready(function(){ Link Here
47
        });
47
        });
48
    }
48
    }
49
49
50
    $(".delete_message").click(function(){
51
        return confirm_message_deletion();
52
    });
53
50
    $("#updatechild, #patronflags, #renewpatron, #deletepatron, #exportbarcodes").tooltip();
54
    $("#updatechild, #patronflags, #renewpatron, #deletepatron, #exportbarcodes").tooltip();
51
    $("#exportcheckins").click(function(){
55
    $("#exportcheckins").click(function(){
52
        export_barcodes();
56
        export_barcodes();
53
- 

Return to bug 30028