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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt (-10 / +11 lines)
Lines 131-137 Link Here
131
                                    <h3>Image(s) successfully deleted</h3>
131
                                    <h3>Image(s) successfully deleted</h3>
132
                                </div>
132
                                </div>
133
                                [% END %]
133
                                [% END %]
134
                            </fieldset>
134
                            </field
135
                            <fieldset class="action">
135
                            <fieldset class="action">
136
                                <input type="hidden" name="op" value="cud-delete" />
136
                                <input type="hidden" name="op" value="cud-delete" />
137
                                <input class="btn btn-primary" type="button" id="delete" value="Delete selected" />
137
                                <input class="btn btn-primary" type="button" id="delete" value="Delete selected" />
Lines 164-169 Link Here
164
164
165
[% MACRO jsinclude BLOCK %]
165
[% MACRO jsinclude BLOCK %]
166
    <script>
166
    <script>
167
168
        $(document).ready(function() {
169
            $("#delete").click(function(){
170
                return DeleteConfirm();
171
            });
172
            $(".delete_image").on("click", function(){
173
                return confirmDelete( _("Are you sure you want to delete this image?") );
174
            });
175
        });
176
167
        function DeleteConfirm() {
177
        function DeleteConfirm() {
168
            var results = selected_images("delete");
178
            var results = selected_images("delete");
169
            if (results.images) {
179
            if (results.images) {
Lines 197-210 Link Here
197
            }
207
            }
198
            return (-1);
208
            return (-1);
199
        }
209
        }
200
        $(document).ready(function() {
201
            $("#delete").click(function(){
202
                return DeleteConfirm();
203
            });
204
            $(".delete_image").on("click", function(){
205
                return confirmDelete( _("Are you sure you want to delete this image?") );
206
            });
207
        });
208
    </script>
210
    </script>
209
[% END %]
211
[% END %]
210
212
211
- 

Return to bug 38275