various fixes for when the result is an empty list
[myslice.git] / plugins / googlemap / googlemap.js
index 94e9244..607d658 100644 (file)
            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;
             }