From a0636b9fc2e25428fb9e66c61c8ce85d1b35cc5b Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 4 Oct 2013 15:40:20 +0200 Subject: [PATCH] cosmetic - on_show message displayed only if debug selected --- plugins/googlemap/static/js/googlemap.js | 3 +-- plugins/hazelnut/static/js/hazelnut.js | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 50d921e0..3f8ae733 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -59,8 +59,7 @@ googlemap_debug_detailed=false; /* PLUGIN EVENTS */ on_show: function(e) { -// if (googlemap_debug) messages.debug("on_show"); - messages.debug("on_show"); + if (googlemap_debug) messages.debug("googlemap.on_show"); var googlemap = e.data; google.maps.event.trigger(googlemap.map, 'resize'); }, // on_show diff --git a/plugins/hazelnut/static/js/hazelnut.js b/plugins/hazelnut/static/js/hazelnut.js index 1f4142ac..dbff4ce1 100644 --- a/plugins/hazelnut/static/js/hazelnut.js +++ b/plugins/hazelnut/static/js/hazelnut.js @@ -4,14 +4,8 @@ * License: GPLv3 */ -//debug_table = function (table,message) { -// messages.debug ( message + ": " + table.fnSettings().aoColumns.length + " columns"); -// messages.debug ( message + ":..." + table.fnGetNodes().length + " lines"); -//}; - (function($){ - // TEMP var debug=false; // debug=true -- 2.43.0