From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Tue, 1 Oct 2013 10:33:46 +0000 (+0200)
Subject: cosmetic for when googlemap goes mad with broken query results
X-Git-Tag: myslice-0.2-5~63
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7779d17442527ce42c1659d851f7df120aac24f0;p=myslice.git

cosmetic for when googlemap goes mad with broken query results
---

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";
         }
     }