Test plan:
1) Apply the patch
2) Have defined some cataloguing plugin which generates javascript - for
example dateaccessioned.pl
3) Go to cataloguing/adding item and show source
-> there should be no type parameter in script tag in code added by
cataloguing pulgin
4) prove t/db_dependent/FrameworkPlugin.t
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
my ( $id, $script, $bind ) = @_;
chomp ($script, $bind);
return <<HERE;
-<script type="text/javascript">
-//<![CDATA[
+<script>
$script
function BindEvents$id() {
$bind
\$(document).ready(function() {
BindEvents$id();
});
-//]]>
</script>
HERE
}