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

(-)a/cataloguing/value_builder/cn_browser.pl (-2 / +3 lines)
Lines 35-42 my $builder = sub { Link Here
35
35
36
function Click$function_name(ev) {
36
function Click$function_name(ev) {
37
    ev.preventDefault();
37
    ev.preventDefault();
38
    let window_width = screen.width / 2;
39
    let window_height = screen.height;
38
    q = document.getElementById(ev.data.id);
40
    q = document.getElementById(ev.data.id);
39
    window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=cn_browser.pl&popup&q=\"+encodeURIComponent(q.value),\"cnbrowser\",\"width=500,height=400,toolbar=false,scrollbars=yes\");
41
    window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=cn_browser.pl&popup&q=\"+encodeURIComponent(q.value),\"cnbrowser\",\"width=\"+window_width+\"\,height=\"+window_height+\"\,toolbar=false,scrollbars=yes\");
40
}
42
}
41
43
42
</script>
44
</script>
43
- 

Return to bug 35134