Initialise debug_level to 1 so that the jQuery popup can use it.
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index 5cdea81..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: {
@@ -348,7 +349,6 @@ function team($, teamName) {
 
 
     function target_filtered(id) {
-       debug("target_filtered(" + id + ")");
        for (var i = 0; i < m_filters.length; i++) {
            if (m_filters[i].id === id ||
                m_filters[i].id === 'pz:id=' + id) {