added meeting api

This commit is contained in:
Martin Donnelly 2016-08-19 17:04:01 +01:00
parent 11e2ee897b
commit 905ebd3571
2 changed files with 4 additions and 1 deletions

View File

@ -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');

View File

@ -188,6 +188,7 @@
<script src="lib/underscore.js"></script>
<script src="lib/backbone.js"></script>
<script src="lib/sugar-date.js"></script>
<script src="lib/notification.js"></script>
<script src="lib/amcharts.js"></script>
<script src="lib/serial.js"></script>
<script src="lib/amstock.js"></script>