git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
various fixes for when the result is an empty list
[myslice.git]
/
plugins
/
googlemap
/
googlemap.js
diff --git
a/plugins/googlemap/googlemap.js
b/plugins/googlemap/googlemap.js
index
94e9244
..
607d658
100644
(file)
--- a/
plugins/googlemap/googlemap.js
+++ b/
plugins/googlemap/googlemap.js
@@
-135,8
+135,8
@@
instance_.closest('.need-spin').spin(false);
- if (
!rows
) {
-
alert('error'
);
+ if (
rows === undefined || !rows || rows.length==0
) {
+
messages.warning ("Empty result in googlemap.update_map - nothing to show"
);
return;
}