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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-5 / +4 lines)
Lines 346-353 Link Here
346
                                                [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
346
                                                [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
347
                                                    <td class="note">
347
                                                    <td class="note">
348
                                                        <input type="text" name="note" data-issue_id="[% ISSUE.issue_id | html %]" data-origvalue="[% ISSUE.note | html %]" value="[% ISSUE.note | html %]" readonly>
348
                                                        <input type="text" name="note" data-issue_id="[% ISSUE.issue_id | html %]" data-origvalue="[% ISSUE.note | html %]" value="[% ISSUE.note | html %]" readonly>
349
                                                        <a class="btn" name="js_submitnote" id="save_[% ISSUE.issue_id | html %]" style="display:none;">Submit note</a>
349
                                                        <a class="btn js_submitnote" id="save_[% ISSUE.issue_id | html %]" style="display:none;">Submit note</a>
350
                                                        <a class="btn" name="nonjs_submitnote" href="/cgi-bin/koha/opac-issue-note.pl?issue_id=[% ISSUE.issue_id | url %]">Edit / Create note</a>
350
                                                        <a class="btn nonjs_submitnote" href="/cgi-bin/koha/opac-issue-note.pl?issue_id=[% ISSUE.issue_id | url %]">Edit / Create note</a>
351
                                                    </td>
351
                                                    </td>
352
                                                [% END %]
352
                                                [% END %]
353
                                            </tr>
353
                                            </tr>
Lines 812-818 Link Here
812
            [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
812
            [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
813
813
814
                /* If JS enabled, show button, otherwise show link to redirect to a page where note can be submitted */
814
                /* If JS enabled, show button, otherwise show link to redirect to a page where note can be submitted */
815
                $("a[name='nonjs_submitnote']").hide();
815
                $(".nonjs_submitnote").hide();
816
816
817
                $("input[name='note']").prop('readonly', false);
817
                $("input[name='note']").prop('readonly', false);
818
                $("input[name='note']").keypress(function(e){
818
                $("input[name='note']").keypress(function(e){
Lines 837-843 Link Here
837
                    }
837
                    }
838
                });
838
                });
839
839
840
                $("a[name='js_submitnote']").click(function(e){
840
                $(".js_submitnote").click(function(e){
841
                    var $self = $(this);
841
                    var $self = $(this);
842
                    var title = $(this).parent().siblings('.title').html();
842
                    var title = $(this).parent().siblings('.title').html();
843
                    var $noteinput = $(this).siblings('input[name="note"]').first();
843
                    var $noteinput = $(this).siblings('input[name="note"]').first();
844
- 

Return to bug 22953