Initialise debug_level to 1 so that the jQuery popup can use it.
authorMike Taylor <mike@indexdata.com>
Wed, 12 Feb 2014 18:40:28 +0000 (18:40 +0000)
committerMike Taylor <mike@indexdata.com>
Wed, 12 Feb 2014 18:40:28 +0000 (18:40 +0000)
There's a better way to fix this by doing things in the right order,
but right now I need the logging to fix a different bug.

tools/htdocs/mkws.js

index fe4e1c9..a886bcf 100644 (file)
@@ -71,7 +71,8 @@ Handlebars.registerHelper('commaList', function(items, options) {
 //
 var mkws = {
     authenticated: false,
-    debug_level: undefined, // will be initialised from mkws_config
+    debug_level: 1, // Will be overridden from mkws_config, but
+                   // initial value allows jQuery popup to use logging.
     paz: undefined, // will be set up during initialisation
     teams: {},
     locale_lang: {