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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-3 / +2 lines)
Lines 329-341 Libraries › Administration › Koha Link Here
329
    [% INCLUDE 'str/tinymce_i18n.inc' %]
329
    [% INCLUDE 'str/tinymce_i18n.inc' %]
330
    <script>
330
    <script>
331
        jQuery.validator.addMethod( "letters_numbers", function(value,element){
331
        jQuery.validator.addMethod( "letters_numbers", function(value,element){
332
            var patt = /^[a-zA-Z0-9]+$/g;
332
            var patt = /^[a-zA-Z0-9_]+$/g;
333
            if (patt.test(element.value)) {
333
            if (patt.test(element.value)) {
334
                return true;
334
                return true;
335
            } else {
335
            } else {
336
                return false;
336
                return false;
337
            }
337
            }
338
            }, _("Library code can only contain letters and numbers.")
338
            }, _("Library code can only contain letters, numbers, and underscores.")
339
        );
339
        );
340
340
341
        var columns_settings = [% TablesSettings.GetColumns( 'admin', 'libraries', 'libraries', 'json' ) | $raw %];
341
        var columns_settings = [% TablesSettings.GetColumns( 'admin', 'libraries', 'libraries', 'json' ) | $raw %];
342
- 

Return to bug 28495