12 include_once (
"FDL/viewdocjs.php");
19 $jurl =
"WHAT/Layout";
21 $ckeditorPath =
"lib/ckeditor/4";
24 $ckeditorPath =
"lib/ckeditor/3";
27 $action->parent->addJsRef(
"$ckeditorPath/ckeditor.js");
34 "$jurl/AnchorPosition.js",
35 "$jurl/PopupWindow.js",
37 "jscalendar/Layout/calendar.js",
38 "jscalendar/Layout/calendar-setup.js",
39 "FDL/Layout/common.js",
40 "FDL/Layout/iframe.js",
41 "FDL/Layout/autocompletion.js",
42 "FDC/Layout/inserthtml.js",
43 "FDL/Layout/popupdoc.js",
44 "FDL/Layout/popupdocmenu.js",
46 "lib/jscolor/jscolor.js",
49 if ($action->
Read(
"navigator") ==
"EXPLORER") {
53 $lang = substr($action->GetParam(
"CORE_LANG") , 0, 2);
54 if (preg_match(
'#^[a-z0-9_\.-]+$#i',
$lang) && file_exists(
"jscalendar/Layout/calendar-" .
$lang .
".js")) {
55 $statics[] =
"jscalendar/Layout/calendar-" .
$lang .
".js";
57 $statics[] =
"jscalendar/Layout/calendar-fr.js";
61 "FDL/Layout/editcommon.js",
62 "FDL/Layout/editload.js",
63 "FDL/Layout/enum_choice.js",
64 "FDL/Layout/viewdoc.js",
65 "FDL/Layout/edithtmltext.js"
69 $action->lay->template =
"";
static pack_js(Action &$action, array &$static_js=array(), array &$dynamic_js=array(), $extraCode= '')
viewdocjs(Action &$action)
alleditjs(Action &$action)