diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js index aa19155925..e48adcd42f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/additem.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/additem.js @@ -165,6 +165,19 @@ function cloneItemBlock(index, unique_item_fields) { }); } +function BindPluginEvents(data) { +// the script tag in data for plugins contains a document ready that binds +// the events for the plugin +// when we append, this code does not get executed anymore; so we do it here + var events= data.match(/BindEventstag_\d+_subfield_._\d+/g); + if ( events == null ) return; + for(var i=0; i