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

(-)a/koha-tmpl/intranet-tmpl/prog/js/additem.js (-2 / +2 lines)
Lines 7-17 function addItem( node, unique_item_fields ) { Link Here
7
    //We need to verify the item form before saving
7
    //We need to verify the item form before saving
8
    var empty_item_mandatory = CheckMandatorySubfields(item_form);
8
    var empty_item_mandatory = CheckMandatorySubfields(item_form);
9
    if (empty_item_mandatory > 0) {
9
    if (empty_item_mandatory > 0) {
10
        var _alertString= _("Form not submitted because of the following problem(s)")+"\n";
10
        var _alertString= __("Form not submitted because of the following problem(s)")+"\n";
11
11
12
        _alertString +="-------------------------------------------------------------------\n\n";
12
        _alertString +="-------------------------------------------------------------------\n\n";
13
        _alertString +=
13
        _alertString +=
14
            "\n- " + _("%s item mandatory fields empty").format(empty_item_mandatory);
14
            "\n- " + __("%s item mandatory fields empty").format(empty_item_mandatory);
15
        alert(_alertString);
15
        alert(_alertString);
16
        return false;
16
        return false;
17
    }
17
    }
(-)a/koha-tmpl/intranet-tmpl/prog/js/categories.js (-4 / +4 lines)
Lines 120-131 $(document).ready(function () { Link Here
120
120
121
    let blocked_actions_select = $("select#block_expired[multiple='multiple']");
121
    let blocked_actions_select = $("select#block_expired[multiple='multiple']");
122
    blocked_actions_select.multipleSelect({
122
    blocked_actions_select.multipleSelect({
123
        placeholder: _("Please select ..."),
123
        placeholder: __("Please select ..."),
124
        selectAll: false,
124
        selectAll: false,
125
        hideOptgroupCheckboxes: true,
125
        hideOptgroupCheckboxes: true,
126
        allSelected: _("All selected"),
126
        allSelected: __("All selected"),
127
        countSelected: _("# of % selected"),
127
        countSelected: __("# of % selected"),
128
        noMatchesFound: _("No matches found"),
128
        noMatchesFound: __("No matches found"),
129
        onClick: function (view) {
129
        onClick: function (view) {
130
            if (
130
            if (
131
                view.value == "follow_syspref_BlockExpiredPatronOpacActions" &&
131
                view.value == "follow_syspref_BlockExpiredPatronOpacActions" &&
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-1 / +1 lines)
Lines 793-799 $(document).ready(function() { Link Here
793
            // Prevent form submit
793
            // Prevent form submit
794
            return false;
794
            return false;
795
        } else {
795
        } else {
796
            alert(_("There are no items to be renewed."));
796
            alert(__("There are no items to be renewed."));
797
        }
797
        }
798
    });
798
    });
799
799
(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-1 / +1 lines)
Lines 714-720 function _dt_buttons(params){ Link Here
714
                    let url = window.location.origin + window.location.pathname + '?' + searchParams.toString() + window.location.hash;
714
                    let url = window.location.origin + window.location.pathname + '?' + searchParams.toString() + window.location.hash;
715
                    if( navigator.clipboard && navigator.clipboard.writeText){
715
                    if( navigator.clipboard && navigator.clipboard.writeText){
716
                        navigator.clipboard.writeText( url );
716
                        navigator.clipboard.writeText( url );
717
                        $(node).tooltip({trigger: 'manual', title: _("Copied!")}).tooltip('show');
717
                        $(node).tooltip({trigger: 'manual', title: __("Copied!")}).tooltip('show');
718
                    }
718
                    }
719
                },
719
                },
720
            }
720
            }
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/circulation.js (-2 / +2 lines)
Lines 95-108 $(document).ready(function() { Link Here
95
95
96
    if ( $('#clubs_panel').length ) {
96
    if ( $('#clubs_panel').length ) {
97
        $('#clubs-tab').on('click', function() {
97
        $('#clubs-tab').on('click', function() {
98
            $('#clubs_panel').text(_("Loading..."));
98
            $('#clubs_panel').text(__("Loading..."));
99
            $('#clubs_panel').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=' + borrowernumber );
99
            $('#clubs_panel').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=' + borrowernumber );
100
        });
100
        });
101
    }
101
    }
102
102
103
    if ( $('#pat_lists_panel').length ) {
103
    if ( $('#pat_lists_panel').length ) {
104
        $('#pat_lists-tab').on('click', function() {
104
        $('#pat_lists-tab').on('click', function() {
105
            $('#pat_lists_panel').text(_("Loading..."));
105
            $('#pat_lists_panel').text(__("Loading..."));
106
            $('#pat_lists_panel').load('/cgi-bin/koha/patron_lists/patron-lists-tab.pl?borrowernumber=' + borrowernumber );
106
            $('#pat_lists_panel').load('/cgi-bin/koha/patron_lists/patron-lists-tab.pl?borrowernumber=' + borrowernumber );
107
        });
107
        });
108
    }
108
    }
(-)a/koha-tmpl/intranet-tmpl/prog/js/upload-images.js (-3 / +2 lines)
Lines 211-222 function removeLocalImage(imagenumber) { Link Here
211
                location.href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=" + biblionumber;
211
                location.href="/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=" + biblionumber;
212
            } else {
212
            } else {
213
                thumbnail.html( copy );
213
                thumbnail.html( copy );
214
                alert(_("An error occurred on deleting this image"));
214
                alert(__("An error occurred on deleting this image"));
215
            }
215
            }
216
        },
216
        },
217
        error => {
217
        error => {
218
            thumbnail.html( copy );
218
            thumbnail.html( copy );
219
            alert(_("An error occurred on deleting this image"));
219
            alert(__("An error occurred on deleting this image"));
220
            console.warn("Something wrong happened: %s".format(error));
220
            console.warn("Something wrong happened: %s".format(error));
221
        }
221
        }
222
    );
222
    );
223
- 

Return to bug 38492