From 7779d17442527ce42c1659d851f7df120aac24f0 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 1 Oct 2013 12:33:46 +0200 Subject: [PATCH] cosmetic for when googlemap goes mad with broken query results --- plugins/googlemap/static/js/googlemap.js | 4 ++-- unfold/static/js/unfold-helper.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 854ee4ad..34b2b8de 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -141,9 +141,9 @@ googlemap_debug_detailed=false; // retrieve DOM checkbox and make sure it is checked/unchecked set_checkbox: function(record, checked) { var hrn=this.record_hrn (record); - if (! hrn) { messages.warning ("set_checkbox: record has no hrn"); return; } + if (! hrn) { messages.warning ("googlemap.set_checkbox: record has no hrn"); return; } var checkbox_s = this.by_hrn [ hrn ]; - if (! checkbox_s ) { messages.warning ("set_checkbox: could not spot checkbox for hrn "+hrn); return; } + if (! checkbox_s ) { messages.warning ("googlemap.set_checkbox: could not spot checkbox for hrn "+hrn); return; } checkbox_s.checkbox.prop('checked',checked); }, // set_checkbox diff --git a/unfold/static/js/unfold-helper.js b/unfold/static/js/unfold-helper.js index 67524a1c..f5adb1b6 100644 --- a/unfold/static/js/unfold-helper.js +++ b/unfold/static/js/unfold-helper.js @@ -37,7 +37,7 @@ var unfold = { if(typeof id != 'undefined'){ return id.replace( /(:|\.|\[|\])/g, "\\$1" ); }else{ - return "fake-id"; + return "undefined-id"; } } -- 2.43.0