Bug 32816: Fix cataloguing/value_builder/cn_browser.pl
Use event parameter This is part of the refactoring happening in bug 30975 Test plan: 1. Verify that the plugin continues to work as before Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commitd18772c3c2) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commite2344b96e8) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
cfb990f641
commit
28ff9448fd
|
|
@ -33,8 +33,9 @@ my $builder = sub {
|
|||
my $res = "
|
||||
<script>
|
||||
|
||||
function Click$function_name(i) {
|
||||
q = document.getElementById('$params->{id}');
|
||||
function Click$function_name(ev) {
|
||||
ev.preventDefault();
|
||||
q = document.getElementById(ev.data.id);
|
||||
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\");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue