From: Thierry Parmentelat Date: Fri, 4 Oct 2013 13:40:20 +0000 (+0200) Subject: cosmetic - on_show message displayed only if debug selected X-Git-Tag: myslice-0.2-5~47 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=a0636b9fc2e25428fb9e66c61c8ce85d1b35cc5b cosmetic - on_show message displayed only if debug selected --- 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