projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2d1143b
)
move the default config values for "mkws" into the function()
author
Wolfram Schneider
<wosch@indexdata.dk>
Tue, 14 Jan 2014 13:47:19 +0000
(13:47 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Tue, 14 Jan 2014 13:47:19 +0000
(13:47 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
2c9b89f
..
9b09508
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-2,12
+2,8
@@
"use strict"; // HTML5: disable for debug_level >= 2
"use strict"; // HTML5: disable for debug_level >= 2
-// Set up namespace and some state.
-var mkws = {
- sort: 'relevance',
- authenticated: false,
- filters: []
-};
+// Set up global mkws object
+var mkws = {};
// Define empty mkws_config for simple applications that don't define it.
if (mkws_config == null || typeof mkws_config != 'object') {
// Define empty mkws_config for simple applications that don't define it.
if (mkws_config == null || typeof mkws_config != 'object') {
@@
-21,6
+17,10
@@
function _mkws($) {
// call this function only once
if (mkws.init) return;
// call this function only once
if (mkws.init) return;
+mkws.sort = 'relevance';
+mkws.authenticated = false;
+mkws.filters = [];
+
mkws.locale_lang = {
"de": {
"Authors": "Autoren",
mkws.locale_lang = {
"de": {
"Authors": "Autoren",