cosmetic for when googlemap goes mad with broken query results
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 1 Oct 2013 10:33:46 +0000 (12:33 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 1 Oct 2013 10:33:46 +0000 (12:33 +0200)
plugins/googlemap/static/js/googlemap.js
unfold/static/js/unfold-helper.js

index 854ee4a..34b2b8d 100644 (file)
@@ -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
 
index 67524a1..f5adb1b 100644 (file)
@@ -37,7 +37,7 @@ var unfold = {
         if(typeof id != 'undefined'){
             return id.replace( /(:|\.|\[|\])/g, "\\$1" );
         }else{
-            return "fake-id";
+            return "undefined-id";
         }
     }