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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt (-8 / +7 lines)
Lines 50-57 Link Here
50
            [% IF ( notes.count ) %]
50
            [% IF ( notes.count ) %]
51
                <form id="mark_selected" method="post" action="/cgi-bin/koha/circ/checkout-notes.pl">
51
                <form id="mark_selected" method="post" action="/cgi-bin/koha/circ/checkout-notes.pl">
52
                    <div id="toolbar" class="btn-toolbar">
52
                    <div id="toolbar" class="btn-toolbar">
53
                        <button type="submit" class="btn btn-default" name="mark_selected-seen" value="seen" disabled="disabled"><i class="fa fa-eye"></i> Mark seen</button>
53
                        <button type="submit" class="btn btn-default markseen" name="mark_selected-seen" value="seen" disabled="disabled"><i class="fa fa-eye"></i> Mark seen</button>
54
                        <button type="submit" class="btn btn-default" name="mark_selected-notseen" value="notseen" disabled="disabled"><i class="fa fa-eye-slash"></i> Mark not seen</button>
54
                        <button type="submit" class="btn btn-default markseen" name="mark_selected-notseen" value="notseen" disabled="disabled"><i class="fa fa-eye-slash"></i> Mark not seen</button>
55
                    </div>
55
                    </div>
56
56
57
                    <fieldset class="action" style="cursor:pointer;">
57
                    <fieldset class="action" style="cursor:pointer;">
Lines 140-151 Link Here
140
140
141
            $(".SelectAll").on("click", function(){
141
            $(".SelectAll").on("click", function(){
142
                $("input[name='issue_ids'][type='checkbox']").prop("checked", true);
142
                $("input[name='issue_ids'][type='checkbox']").prop("checked", true);
143
                $(".btn-sm").prop("disabled", false);
143
                $(".markseen").prop("disabled", false);
144
            });
144
            });
145
145
146
            $(".ClearAll").on("click", function(){
146
            $(".ClearAll").on("click", function(){
147
                $("input[name='issue_ids'][type='checkbox']").prop("checked", false);
147
                $("input[name='issue_ids'][type='checkbox']").prop("checked", false);
148
                $(".btn-sm").prop("disabled", true);
148
                $(".markseen").prop("disabled", true);
149
            });
149
            });
150
150
151
            $(".HideSeen").on("click", function(){
151
            $(".HideSeen").on("click", function(){
Lines 158-168 Link Here
158
158
159
            $("#error").hide();
159
            $("#error").hide();
160
160
161
            $("input[type='checkbox']").click(function(event){
161
            $("#notestable").on("change", "input[type='checkbox']", function(){
162
                if ( $("input[type='checkbox']").is(":checked") ) {
162
                if ( $("input[type='checkbox']").is(":checked") ) {
163
                    $(".btn-sm").prop("disabled", false);
163
                    $(".markseen").prop("disabled", false);
164
                } else {
164
                } else {
165
                    $(".btn-sm").prop("disabled", true);
165
                    $(".markseen").prop("disabled", true);
166
                }
166
                }
167
            });
167
            });
168
168
169
- 

Return to bug 24335