diff --git a/main/work/work.lib.php b/main/work/work.lib.php index 5ac7ad89b5..d4e3d1a091 100644 --- a/main/work/work.lib.php +++ b/main/work/work.lib.php @@ -1444,8 +1444,10 @@ function count_dir($path_dir, $recurse) { * validation when you create a work * this goes into the $htmlHeadXtra[] array */ -function to_javascript_work() { - return ''; + '; + return $js; } /** diff --git a/main/work/work.php b/main/work/work.php index 33fdb4f7a8..9e23b9e4e4 100644 --- a/main/work/work.php +++ b/main/work/work.php @@ -75,9 +75,8 @@ if (!empty($my_folder_data)) { } } } - - $htmlHeadXtra[] = to_javascript_work(); + $htmlHeadXtra[] = '