summaryrefslogtreecommitdiff
path: root/www/js/FirstUseCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-12-28 07:47:05 -0500
committerPliable Pixels <pliablepixels@gmail.com>2018-12-28 07:47:05 -0500
commitc07d973c02d9fba7f7ee744a96f4a684426243b0 (patch)
treee16ac6f15a742def2109df7762f8f7bdeb2603f5 /www/js/FirstUseCtrl.js
parentd7c871c203618ead83871cb321373241fae33c97 (diff)
rename DataModel to NVR - more logical
Diffstat (limited to 'www/js/FirstUseCtrl.js')
-rw-r--r--www/js/FirstUseCtrl.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/www/js/FirstUseCtrl.js b/www/js/FirstUseCtrl.js
index 14cd09a0..02d7c177 100644
--- a/www/js/FirstUseCtrl.js
+++ b/www/js/FirstUseCtrl.js
@@ -2,7 +2,7 @@
/* jslint browser: true*/
/* global cordova,StatusBar,angular,console */
-angular.module('zmApp.controllers').controller('zmApp.FirstUseCtrl', ['$scope', '$ionicSideMenuDelegate', 'zm', '$stateParams', '$ionicHistory', '$state', 'NVRDataModel', '$rootScope', '$ionicPopup', '$translate', function ($scope, $ionicSideMenuDelegate, zm, $stateParams, $ionicHistory, $state, NVRDataModel, $rootScope, $ionicPopup, $translate) {
+angular.module('zmApp.controllers').controller('zmApp.FirstUseCtrl', ['$scope', '$ionicSideMenuDelegate', 'zm', '$stateParams', '$ionicHistory', '$state', 'NVR', '$rootScope', '$ionicPopup', '$translate', function ($scope, $ionicSideMenuDelegate, zm, $stateParams, $ionicHistory, $state, NVR, $rootScope, $ionicPopup, $translate) {
$scope.openMenu = function () {
$ionicSideMenuDelegate.toggleLeft();
};
@@ -19,13 +19,13 @@ angular.module('zmApp.controllers').controller('zmApp.FirstUseCtrl', ['$scope',
//
if (window.cordova) {
cordova.plugin.http.setSSLCertMode('nocheck', function () {
- NVRDataModel.debug('--> First use -> SSL is permissive, will allow any certs for now. You can change it later.');
+ NVR.debug('--> First use -> SSL is permissive, will allow any certs for now. You can change it later.');
}, function () {
console.log('-->First Use -> Error setting SSL permissive');
});
if ($rootScope.platformOS == 'android') {
- NVRDataModel.log (">>> Android: enabling inline image view for self signed certs");
+ NVR.log (">>> Android: enabling inline image view for self signed certs");
cordova.plugins.certificates.trustUnsecureCerts(true);
}
@@ -35,7 +35,7 @@ angular.module('zmApp.controllers').controller('zmApp.FirstUseCtrl', ['$scope',
});
$scope.switchLang = function () {
- $scope.lang = NVRDataModel.getLanguages();
+ $scope.lang = NVR.getLanguages();
$scope.myopt = {
lang: ""
};
@@ -56,8 +56,8 @@ angular.module('zmApp.controllers').controller('zmApp.FirstUseCtrl', ['$scope',
{
text: $translate.instant('kButtonOk'),
onTap: function (e) {
- NVRDataModel.log("Language selected:" + $scope.myopt.lang);
- NVRDataModel.setDefaultLanguage($scope.myopt.lang, true);
+ NVR.log("Language selected:" + $scope.myopt.lang);
+ NVR.setDefaultLanguage($scope.myopt.lang, true);
//return "OK";