{{/zone}}
{{#zone "bottomJs"}}
diff --git a/modules/distribution/src/repository/jaggeryapps/iotserver/units/dashboard/public/js/dashboard.js b/modules/distribution/src/repository/jaggeryapps/iotserver/units/dashboard/public/js/dashboard.js
index 7662c29c..fcc37aaf 100644
--- a/modules/distribution/src/repository/jaggeryapps/iotserver/units/dashboard/public/js/dashboard.js
+++ b/modules/distribution/src/repository/jaggeryapps/iotserver/units/dashboard/public/js/dashboard.js
@@ -14,32 +14,4 @@ $(document).ready(function () {
updateStats("/iotserver/api/group/all/count", "#group-count");
updateStats("/iotserver/api/policies/count", "#policy-count");
updateStats("/iotserver/api/users/count", "#user-count");
-
- displayEvents();
-});
-
-var displayEvents = function () {
- var eventListing = $("#event-stream");
- var eventListingSrc = eventListing.attr("src");
- $.template("event-stream", eventListingSrc, function (template) {
- var serviceURL = "/iotserver/api/event/list";
- var successCallback = function (data) {
- var viewModel = {};
- viewModel.data = JSON.parse(data);
- var content = template(viewModel);
- $("#event-stream-place-holder").html(content);
- formatDates();
- };
- invokerUtil.get(serviceURL,
- successCallback, function (message) {
- console.log(message);
- });
- });
-}
-
-function formatDates() {
- $(".formatDate").each(function () {
- var timeStamp = $(this).html();
- $(this).html(new Date(parseInt(timeStamp)).toUTCString());
- });
-}
+});
\ No newline at end of file
diff --git a/modules/distribution/src/repository/jaggeryapps/iotserver/units/dashboard/public/templates/event-stream.hbs b/modules/distribution/src/repository/jaggeryapps/iotserver/units/dashboard/public/templates/event-stream.hbs
deleted file mode 100644
index accd43dc..00000000
--- a/modules/distribution/src/repository/jaggeryapps/iotserver/units/dashboard/public/templates/event-stream.hbs
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
Time
-
Device
-
Activity
-
-
-
- {{#each data}}
-
-
{{time}}
-
{{deviceName}}
-
{{activity}}
-
- {{/each}}
-
-
-
\ No newline at end of file
diff --git a/modules/distribution/src/repository/jaggeryapps/iotserver/units/events/public/js/events.js b/modules/distribution/src/repository/jaggeryapps/iotserver/units/events/public/js/events.js
index b88cb586..f23c7c0b 100644
--- a/modules/distribution/src/repository/jaggeryapps/iotserver/units/events/public/js/events.js
+++ b/modules/distribution/src/repository/jaggeryapps/iotserver/units/events/public/js/events.js
@@ -19,4 +19,11 @@ var displayEvents = function () {
console.log(message);
});
});
-};
\ No newline at end of file
+};
+
+function formatDates() {
+ $(".formatDate").each(function () {
+ var timeStamp = $(this).html();
+ $(this).html(new Date(parseInt(timeStamp)).toUTCString());
+ });
+}
\ No newline at end of file
diff --git a/modules/distribution/src/repository/jaggeryapps/iotserver/units/showcase/showcase.hbs b/modules/distribution/src/repository/jaggeryapps/iotserver/units/showcase/showcase.hbs
index 4f39266f..ea818259 100644
--- a/modules/distribution/src/repository/jaggeryapps/iotserver/units/showcase/showcase.hbs
+++ b/modules/distribution/src/repository/jaggeryapps/iotserver/units/showcase/showcase.hbs
@@ -8,12 +8,12 @@