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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-2 / +9 lines)
Lines 77-83 Link Here
77
                    <a href="boraccount.pl?action=reverse&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-undo"></i> Reverse</a>
77
                    <a href="boraccount.pl?action=reverse&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-undo"></i> Reverse</a>
78
                [% END %]
78
                [% END %]
79
                [% IF account.amount < 0 %]
79
                [% IF account.amount < 0 %]
80
                    <a href="boraccount.pl?action=void&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-ban"></i> Void</a>
80
                    <a href="boraccount.pl?action=void&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs void"><i class="fa fa-ban"></i> Void</a>
81
                [% END %]
81
                [% END %]
82
          [% ELSE %]
82
          [% ELSE %]
83
            &nbsp;
83
            &nbsp;
Lines 141-146 Link Here
141
                table_account_fines.fnFilter(filteredValue, 4, true, false);
141
                table_account_fines.fnFilter(filteredValue, 4, true, false);
142
                $(this).toggleClass('filtered');
142
                $(this).toggleClass('filtered');
143
            });
143
            });
144
145
            $(".void").on("click",function(e){
146
                if( confirm( _("Are you sure you want to void this credit?") ) ) {
147
                    return true;
148
                } else {
149
                    e.preventDefault();
150
                }
151
            });
144
        });
152
        });
145
    </script>
153
    </script>
146
[% END %]
154
[% END %]
147
- 

Return to bug 20703