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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/items_search_fields.tt (-3 lines)
Lines 115-123 Link Here
115
115
116
[% MACRO jsinclude BLOCK %]
116
[% MACRO jsinclude BLOCK %]
117
    [% Asset.js("js/admin-menu.js") | $raw %]
117
    [% Asset.js("js/admin-menu.js") | $raw %]
118
    <script>
119
        var MSG_ITEM_SEARCH_DELETE_CONFIRM = _("Are you sure you want to delete this field?");
120
    </script>
121
    [% Asset.js("js/item_search_fields.js") | $raw %]
118
    [% Asset.js("js/item_search_fields.js") | $raw %]
122
[% END %]
119
[% END %]
123
120
(-)a/koha-tmpl/intranet-tmpl/prog/js/item_search_fields.js (-3 / +3 lines)
Lines 1-3 Link Here
1
/* global __ */
1
$(document).ready(function(){
2
$(document).ready(function(){
2
    $("#add_field_form").hide();
3
    $("#add_field_form").hide();
3
    $("#new_search_field").on("click",function(e){
4
    $("#new_search_field").on("click",function(e){
Lines 14-24 $(document).ready(function(){ Link Here
14
    });
15
    });
15
    $(".field-delete").on("click",function(){
16
    $(".field-delete").on("click",function(){
16
        $(this).parent().parent().addClass("highlighted-row");
17
        $(this).parent().parent().addClass("highlighted-row");
17
        if( confirm( MSG_ITEM_SEARCH_DELETE_CONFIRM )){
18
        if (confirm( __("Are you sure you want to delete this field?") )) {
18
            return true;
19
            return true;
19
        } else {
20
        } else {
20
            $(this).parent().parent().removeClass("highlighted-row");
21
            $(this).parent().parent().removeClass("highlighted-row");
21
            return false;
22
            return false;
22
        }
23
        }
23
    });
24
    });
24
});
25
});
25
- 

Return to bug 26230