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

(-)a/koha-tmpl/intranet-tmpl/prog/js/modals/add_catalog_concern.js (-2 / +2 lines)
Lines 35-41 $(document).ready(function() { Link Here
35
                $('#addConcernModal').modal('hide');
35
                $('#addConcernModal').modal('hide');
36
                $('#concern_body').val('');
36
                $('#concern_body').val('');
37
                $('#concern_title').val('');
37
                $('#concern_title').val('');
38
                $('#toolbar').before('<div class="alert alert-success">Your concern was sucessfully submitted.</div>');
38
                $('#toolbar').before('<div class="dialog message">' + __("Your concern was sucessfully submitted.") + '</div>');
39
                if ($.fn.dataTable.isDataTable("#table_concerns")) {
39
                if ($.fn.dataTable.isDataTable("#table_concerns")) {
40
                    $("#table_concerns").DataTable().ajax.reload();
40
                    $("#table_concerns").DataTable().ajax.reload();
41
                }
41
                }
Lines 43-49 $(document).ready(function() { Link Here
43
            error: function(data) {
43
            error: function(data) {
44
                $('#concern-submit-spinner').hide();
44
                $('#concern-submit-spinner').hide();
45
                $('#addConcernModal').modal('hide');
45
                $('#addConcernModal').modal('hide');
46
                $('#toolbar').before('<div class="alert alert-error">There was an error when submitting your concern, please contact a librarian.</div>');
46
                $('#toolbar').before('<div class="dialog alert">' + __("There was an error when submitting your concern, please contact a librarian.") + '</div>');
47
            },
47
            },
48
            contentType: "json"
48
            contentType: "json"
49
        });
49
        });
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/modals/catalog_concern.js (-3 / +2 lines)
Lines 52-63 $(document).ready(function() { Link Here
52
                $('#addConcernModal').modal('hide');
52
                $('#addConcernModal').modal('hide');
53
                $('#concern_body').val('');
53
                $('#concern_body').val('');
54
                $('#concern_title').val('');
54
                $('#concern_title').val('');
55
                $('h1:first').before('<div class="alert alert-success">Your concern was sucessfully submitted.</div>');
55
                $('h1:first').before('<div class="alert alert-success">' + __("Your concern was sucessfully submitted.") + '</div>');
56
            },
56
            },
57
            error: function(data) {
57
            error: function(data) {
58
                $('#concern-submit-spinner').hide();
58
                $('#concern-submit-spinner').hide();
59
                $('#addConcernModal').modal('hide');
59
                $('#addConcernModal').modal('hide');
60
                $('h1:first').before('<div class="alert alert-error">There was an error when submitting your concern, please contact a librarian.</div>');
60
                $('h1:first').before('<div class="alert alert-error">' + __("There was an error when submitting your concern, please contact a librarian.") + '</div>');
61
            },
61
            },
62
            contentType: "json"
62
            contentType: "json"
63
        });
63
        });
64
- 

Return to bug 35081