summaryrefslogtreecommitdiff
path: root/www/js/ImportantMessageCtrl.js
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-01-30 06:54:06 -0500
committerpliablepixels <pliablepixels@gmail.com>2016-01-30 06:54:06 -0500
commitf6ff80802debe55c522ab1c4f0212022ada48ceb (patch)
treeeb5d3949ac448f0462b74779016f3e7107c0d501 /www/js/ImportantMessageCtrl.js
parent08e9389d45559e43bbb7a6b4ec2210646c62d8c1 (diff)
#155 - added a screen to show relevant messages (such as this issue)
Former-commit-id: dc9c94c6cbf491ca6b29f514acb0cfebe9f8b187
Diffstat (limited to 'www/js/ImportantMessageCtrl.js')
-rw-r--r--www/js/ImportantMessageCtrl.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/www/js/ImportantMessageCtrl.js b/www/js/ImportantMessageCtrl.js
new file mode 100644
index 00000000..ae53dc06
--- /dev/null
+++ b/www/js/ImportantMessageCtrl.js
@@ -0,0 +1,33 @@
+/* jshint -W041 */
+/* jslint browser: true*/
+/* global cordova,StatusBar,angular,console */
+
+angular.module('zmApp.controllers').controller('zmApp.ImportantMessageCtrl', ['$scope','$ionicSideMenuDelegate', 'zm', '$stateParams', '$timeout','$rootScope', function ($scope,$ionicSideMenuDelegate,zm, $stateParams, $timeout, $rootScope) {
+$scope.openMenu = function () {
+ $ionicSideMenuDelegate.toggleLeft();
+ };
+
+
+
+
+ //-------------------------------------------------------------------------
+ // Controller Main
+ //------------------------------------------------------------------------
+ $scope.$on('$ionicView.enter', function () {
+ console.log("**VIEW ** LowVersion Ctrl Entered");
+ $ionicSideMenuDelegate.canDragContent(true);
+ $scope.requiredVersion = zm.minAppVersion;
+ $scope.currentVersion = $stateParams.ver;
+ $scope.recommendedVersion = zm.recommendedAppVersion;
+
+ });
+
+ $scope.openMenu = function () {
+ $timeout(function () {
+ $rootScope.stateofSlide = $ionicSideMenuDelegate.isOpen();
+ }, 500);
+
+ $ionicSideMenuDelegate.toggleLeft();
+ };
+
+}]);