summaryrefslogtreecommitdiff
path: root/www/js/FirstUseCtrl.js
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-11-10 14:46:23 -0500
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-11-10 14:46:23 -0500
commitfa336e58a6cf20814f5bad252d2b5aa49014abfe (patch)
treebd4fa2c868aef8b10be0e1c371e343174a995549 /www/js/FirstUseCtrl.js
parentedc8404f49bada3f8105f129afba887c39aaa207 (diff)
#756 - warm and fuzzy first use display
Former-commit-id: 6e2d23af7e58b7239e82090edb6f835f145e7389
Diffstat (limited to 'www/js/FirstUseCtrl.js')
-rw-r--r--www/js/FirstUseCtrl.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/www/js/FirstUseCtrl.js b/www/js/FirstUseCtrl.js
new file mode 100644
index 00000000..3a31bb71
--- /dev/null
+++ b/www/js/FirstUseCtrl.js
@@ -0,0 +1,33 @@
+/* jshint -W041 */
+/* jslint browser: true*/
+/* global cordova,StatusBar,angular,console */
+
+angular.module('zmApp.controllers').controller('zmApp.FirstUseCtrl', ['$scope','$ionicSideMenuDelegate', 'zm', '$stateParams', '$ionicHistory','$state', function ($scope,$ionicSideMenuDelegate,zm, $stateParams, $ionicHistory, $state) {
+$scope.openMenu = function () {
+ $ionicSideMenuDelegate.toggleLeft();
+ };
+
+
+
+ //-------------------------------------------------------------------------
+ // Controller Main
+ //------------------------------------------------------------------------
+ $scope.$on('$ionicView.enter', function () {
+ console.log("**VIEW ** FirstUse Ctrl Entered");
+ $ionicSideMenuDelegate.canDragContent(false);
+
+
+ });
+
+ $scope.goToLogin = function()
+ {
+ $ionicHistory.nextViewOptions({
+ disableAnimate: false,
+ disableBack: true
+ });
+ $state.go ("login");
+ };
+
+
+
+}]);