diff --git a/mdot/mdot_server/mdot_server/app/js/mdot.js b/mdot/mdot_server/mdot_server/app/js/mdot.js index 48382e7..477c865 100644 --- a/mdot/mdot_server/mdot_server/app/js/mdot.js +++ b/mdot/mdot_server/mdot_server/app/js/mdot.js @@ -128,6 +128,7 @@ DeviceCollection.models = tempCollection.models; + notification.notify('success', 'Data loaded'); DeviceCollection.trigger('update'); console.log('temporal:', this.temporal); }, decoder: function(data) { @@ -211,7 +212,7 @@ console.log('MDOT:render'); $('#output').empty(); var that = this; - that.$el.append(this.template); + // that.$el.append(this.template); return this; } @@ -243,6 +244,7 @@ }, updateDevice: function() { var fetchObj = {beforeSend: sendAuthentication}; console.log('MainView:Updatedevice'); + notification.clearAll(); if (this.model.has('device')) { // FetchObj.data = $.param({key:'"'+ this.model.get('device') + '"'}); // this.collection.url = 'https://qz0da4.internetofthings.ibmcloud.com/api/v0002/historian/types/mDot/devices/' + this.model.get('device'); diff --git a/mdot/mdot_server/mdot_server/app/test.html b/mdot/mdot_server/mdot_server/app/test.html index 4ca1d88..c699a47 100644 --- a/mdot/mdot_server/mdot_server/app/test.html +++ b/mdot/mdot_server/mdot_server/app/test.html @@ -10,7 +10,7 @@ - +
@@ -188,6 +188,7 @@ +