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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-3 / +2 lines)
Lines 882-888 Link Here
882
                                                                </ul>
882
                                                                </ul>
883
                                                            </div>
883
                                                            </div>
884
                                                        [% ELSIF CAN_user_suggestions_suggestions_delete %]
884
                                                        [% ELSIF CAN_user_suggestions_suggestions_delete %]
885
                                                            <button data-op="cud-delete" data-suggestionid="[% s.suggestionid | html %]" class="btn btn-default trigger_action">Delete</button>
885
                                                            <button data-op="cud-delete" data-suggestionid="[% s.suggestionid | html %]" class="btn btn-xs btn-default trigger_action"><i class="fa fa-trash-can"></i> Delete</button>
886
                                                        [% END %]
886
                                                        [% END %]
887
                                                    </td>
887
                                                    </td>
888
                                                </tr>
888
                                                </tr>
Lines 1437-1443 Link Here
1437
                    $("." + target).toggle();
1437
                    $("." + target).toggle();
1438
                });
1438
                });
1439
1439
1440
                $("button.trigger_action").on("click", function(e) {
1440
                $(".trigger_action").on("click", function(e) {
1441
                    var id = $(this).data('suggestionid');
1441
                    var id = $(this).data('suggestionid');
1442
                    var op = $(this).data('op');
1442
                    var op = $(this).data('op');
1443
                    if ( op == 'cud-delete' && !confirm(_("Are you sure you want to delete this suggestion?")) ) {
1443
                    if ( op == 'cud-delete' && !confirm(_("Are you sure you want to delete this suggestion?")) ) {
1444
- 

Return to bug 38305