summaryrefslogtreecommitdiff
path: root/www/js/HelpCtrl.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/HelpCtrl.js
parentd7c871c203618ead83871cb321373241fae33c97 (diff)
rename DataModel to NVR - more logical
Diffstat (limited to 'www/js/HelpCtrl.js')
-rw-r--r--www/js/HelpCtrl.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/www/js/HelpCtrl.js b/www/js/HelpCtrl.js
index b0cc14df..b022121d 100644
--- a/www/js/HelpCtrl.js
+++ b/www/js/HelpCtrl.js
@@ -2,7 +2,7 @@
/* jslint browser: true*/
/* global cordova,StatusBar,angular,console, Masonry */
-angular.module('zmApp.controllers').controller('zmApp.HelpCtrl', ['$scope', '$rootScope', '$ionicModal', 'NVRDataModel', '$ionicSideMenuDelegate', '$ionicHistory', '$state', '$translate', '$q', '$templateRequest', '$sce', '$compile', function ($scope, $rootScope, $ionicModal, NVRDataModel, $ionicSideMenuDelegate, $ionicHistory, $state, $translate, $q, $templateRequest, $sce, $compile) {
+angular.module('zmApp.controllers').controller('zmApp.HelpCtrl', ['$scope', '$rootScope', '$ionicModal', 'NVR', '$ionicSideMenuDelegate', '$ionicHistory', '$state', '$translate', '$q', '$templateRequest', '$sce', '$compile', function ($scope, $rootScope, $ionicModal, NVR, $ionicSideMenuDelegate, $ionicHistory, $state, $translate, $q, $templateRequest, $sce, $compile) {
$scope.openMenu = function () {
$ionicSideMenuDelegate.toggleLeft();
};
@@ -34,7 +34,7 @@ angular.module('zmApp.controllers').controller('zmApp.HelpCtrl', ['$scope', '$ro
function insertHelp() {
- var l = NVRDataModel.getDefaultLanguage() || 'en';
+ var l = NVR.getDefaultLanguage() || 'en';
var lang = "lang/help/help-" + l + ".html";
//console.log ("LANG IS " + lang);
var templateUrl = $sce.getTrustedResourceUrl(lang);
@@ -47,14 +47,14 @@ angular.module('zmApp.controllers').controller('zmApp.HelpCtrl', ['$scope', '$ro
$compile(elem.html(template).contents())($scope);
},
function (error) {
- NVRDataModel.log("Language file " + lang + " not found, falling back");
+ NVR.log("Language file " + lang + " not found, falling back");
$templateRequest(templateUrlFB)
.then(function (template) {
var elem = angular.element(document.getElementById('insertHelp'));
$compile(elem.html(template).contents())($scope);
},
function (error) {
- NVRDataModel.log("fallback help not found");
+ NVR.log("fallback help not found");
});
}
);
@@ -70,8 +70,8 @@ angular.module('zmApp.controllers').controller('zmApp.HelpCtrl', ['$scope', '$ro
//------------------------------------------------------------------------
$scope.$on('$ionicView.enter', function () {
//console.log("**VIEW ** Help Ctrl Entered");
- NVRDataModel.setAwake(false);
- $scope.zmAppVersion = NVRDataModel.getAppVersion();
+ NVR.setAwake(false);
+ $scope.zmAppVersion = NVR.getAppVersion();
insertHelp();
});