From 2c696b72225a6f7dd91e52712b91a3d1be5fa41d Mon Sep 17 00:00:00 2001 From: Dunith Dhanushka Date: Mon, 16 Jan 2017 18:41:10 +0530 Subject: [PATCH] Displaying the sidebar while page loads --- .../GadgetGeoDashboard_1.0.0/geo-dashboard/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/GadgetGeoDashboard_1.0.0/geo-dashboard/js/app.js b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/GadgetGeoDashboard_1.0.0/geo-dashboard/js/app.js index 5d4bfab3d5..825b523a39 100644 --- a/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/GadgetGeoDashboard_1.0.0/geo-dashboard/js/app.js +++ b/components/analytics/iot-analytics/org.wso2.carbon.iot.geo.dashboard/src/main/resources/carbonapps/GadgetGeoDashboard_1.0.0/geo-dashboard/js/app.js @@ -120,6 +120,8 @@ function initializeMap() { } }); + //setting the sidebar to be opened when page loads + $("a[href='#left_side_pannel']").trigger('click'); } /* Attribution control */ @@ -417,4 +419,4 @@ function clearFocus() { spatialObject.removeFromMap(); selectedSpatialObject = null; } -} \ No newline at end of file +}