git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cosmetic for when googlemap goes mad with broken query results
[unfold.git]
/
unfold
/
static
/
js
/
unfold-helper.js
diff --git
a/unfold/static/js/unfold-helper.js
b/unfold/static/js/unfold-helper.js
index
8d75cc3
..
f5adb1b
100644
(file)
--- a/
unfold/static/js/unfold-helper.js
+++ b/
unfold/static/js/unfold-helper.js
@@
-34,7
+34,11
@@
var unfold = {
},
escape_id: function(id) {
- return id.replace( /(:|\.|\[|\])/g, "\\$1" );
+ if(typeof id != 'undefined'){
+ return id.replace( /(:|\.|\[|\])/g, "\\$1" );
+ }else{
+ return "undefined-id";
+ }
}
} // global unfold