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

(-)a/cataloguing/value_builder/unimarc_field_4XX.pl (-4 / +4 lines)
Lines 46-54 sub plugin_javascript { Link Here
46
    my $function_name = $field_number;
46
    my $function_name = $field_number;
47
    my $res           = "
47
    my $res           = "
48
    <script>
48
    <script>
49
        function Clic$function_name(i) {
49
        function Clic$function_name(event) {
50
            defaultvalue=document.getElementById(\"$field_number\").value;
50
            event.preventDefault();
51
            window.open(\"/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&index=\" + i + \"&result=\"+defaultvalue,\"unimarc_field_4\"+i+\"\",'width=900,height=700,toolbar=false,scrollbars=yes');
51
            defaultvalue=document.getElementById(event.data.id).value;
52
            window.open(\"/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&index=\" + event.data.id + \"&result=\"+defaultvalue,\"unimarc_field_4\"+event.data.id+\"\",'width=900,height=700,toolbar=false,scrollbars=yes');
52
53
53
        }
54
        }
54
    </script>
55
    </script>
55
- 

Return to bug 32872