summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/DataModel.js')
-rw-r--r--www/js/DataModel.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js
index a4f471ef..41e166c9 100644
--- a/www/js/DataModel.js
+++ b/www/js/DataModel.js
@@ -1,3 +1,7 @@
+/* jshint -W041 */
+/* jslint browser: true*/
+/* global cordova,StatusBar,angular,console */
+
// This is my central data respository and common functions
// that many other controllers use
// It's grown over time. I guess I may have to split this into multiple services in the future
@@ -300,7 +304,7 @@ angular.module('zmApp.controllers').service('ZMDataModel', ['$http', '$q', '$ion
var myurl = (monitorId == 0) ? apiurl + "/events.json" : apiurl + "/events/index/MonitorId:" + monitorId + ".json";
if (pageId) {
- var myurl = myurl + "?page=" + pageId;
+ myurl = myurl + "?page=" + pageId;
} else {
console.log("**** PAGE WAS " + pageId);
}
@@ -346,7 +350,7 @@ angular.module('zmApp.controllers').service('ZMDataModel', ['$http', '$q', '$ion
oldevents = [];
}
return d.promise;
- })
+ });
return d.promise;
} // not simulated
},