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

(-)a/cataloguing/value_builder/unimarc_field_117.pl (-4 / +4 lines)
Lines 32-40 sub plugin_javascript { Link Here
32
my ($dbh,$record,$tagslib,$field_number) = @_;
32
my ($dbh,$record,$tagslib,$field_number) = @_;
33
my $res="
33
my $res="
34
<script>
34
<script>
35
function Clic$field_number(i) {
35
function Clic$field_number(event) {
36
	defaultvalue=document.getElementById(\"$field_number\").value;
36
    event.preventDefault();
37
	newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_117.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_117\",'width=600,height=225,toolbar=false,scrollbars=yes');
37
    defaultvalue=document.getElementById(event.data.id).value;
38
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_117.pl&index=\" + event.data.id + \"&result=\"+defaultvalue,\"unimarc_field_117\",'width=600,height=225,toolbar=false,scrollbars=yes');
38
39
39
}
40
}
40
</script>
41
</script>
41
- 

Return to bug 32831