Enabling senslabmap in sliceview and add a message when there are no nodes to display.
[myslice.git] / plugins / senslabmap / static / js / map.js
index 6918e7c..4e184cd 100644 (file)
@@ -33,6 +33,10 @@ var Senslab = {
     
     $menu.find("li").eq(0).addClass("active");
     $maps.find("div").eq(0).addClass("active");
+
+    if (!sites.length) {
+      $container.text("No nodes to display.");
+    }
   }
 };