summaryrefslogtreecommitdiff
path: root/lib/exe/js.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-03-12 18:39:11 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-03-12 18:39:11 +0000
commit4e60057c8ccbee18b94a64208311f9bbb338eec6 (patch)
tree08d79159aa78693c27f54ecebc3105034dfc5933 /lib/exe/js.php
parent57a6f99d09d3662a8a2ad72e312aa6f53bcc2d01 (diff)
parent069942acdaa5ba825bc3f92c7093b5071789f1ca (diff)
downloadrpg-4e60057c8ccbee18b94a64208311f9bbb338eec6.tar.gz
rpg-4e60057c8ccbee18b94a64208311f9bbb338eec6.tar.bz2
Merge branch 'master' into tablethead
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r--lib/exe/js.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php
index 040b8874d..8f16f4a96 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -44,6 +44,7 @@ function js_out(){
DOKU_INC.'lib/scripts/jquery/jquery.cookie.js',
DOKU_INC."lib/scripts/jquery/jquery-ui$min.js",
DOKU_INC."lib/scripts/jquery/jquery-migrate$min.js",
+ DOKU_INC.'inc/lang/'.$conf['lang'].'/jquery.ui.datepicker.js',
DOKU_INC."lib/scripts/fileuploader.js",
DOKU_INC."lib/scripts/fileuploaderextended.js",
DOKU_INC.'lib/scripts/helpers.js',
@@ -112,6 +113,7 @@ function js_out(){
// load files
foreach($files as $file){
+ if(!file_exists($file)) continue;
$ismin = (substr($file,-7) == '.min.js');
$debugjs = ($conf['allowdebug'] && strpos($file, DOKU_INC.'lib/scripts/') !== 0);
@@ -218,6 +220,12 @@ function js_pluginstrings() {
return $pluginstrings;
}
+/**
+ * Return an two-dimensional array with strings from the language file of current active template.
+ *
+ * - $lang['js'] must be an array.
+ * - Nothing is returned for template without an entry for $lang['js']
+ */
function js_templatestrings() {
global $conf;
$templatestrings = array();