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

(-)a/koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js (-7 / +10 lines)
Lines 255-266 function editAction( mmta_id, ordering, action, field_number, from_field, from_s Link Here
255
    document.getElementById('field_value').value = field_value;
255
    document.getElementById('field_value').value = field_value;
256
    document.getElementById('to_field').value = to_field;
256
    document.getElementById('to_field').value = to_field;
257
    document.getElementById('to_subfield').value = to_subfield;
257
    document.getElementById('to_subfield').value = to_subfield;
258
    $("#to_regex_search").val(to_regex_search);
258
    if ( to_regex_search == '' && to_regex_replace == '' && to_regex_modifiers == '' ) {
259
    $("#to_regex_replace").val(to_regex_replace);
259
        document.getElementById('to_field_regex').checked = false;
260
    $("#to_regex_modifiers").val(to_regex_modifiers);
260
        document.getElementById('to_field_regex').onchange();
261
261
    } else {
262
    document.getElementById('to_field_regex').checked = conditional_regex.length;
262
        document.getElementById('to_field_regex').checked = true;
263
    document.getElementById('to_field_regex').onchange();
263
        document.getElementById('to_field_regex').onchange();
264
        $("#to_regex_search").val(to_regex_search);
265
        $("#to_regex_replace").val(to_regex_replace);
266
        $("#to_regex_modifiers").val(to_regex_modifiers);
267
    }
264
268
265
    setSelectByValue( 'conditional', conditional );
269
    setSelectByValue( 'conditional', conditional );
266
    document.getElementById('conditional').onchange();
270
    document.getElementById('conditional').onchange();
267
- 

Return to bug 21819