summaryrefslogtreecommitdiff
path: root/www/js/RefreshCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-03-14 12:11:39 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-03-14 12:11:39 -0400
commite30052fc3e1607af2e6161e87032a66a89c83ca5 (patch)
treec66392ba24f080721b2b629605c52e4063ed1419 /www/js/RefreshCtrl.js
parent5b6d9b5796475bed4f8fdcb9380bd6bc8baed661 (diff)
#598 more tweaks
Diffstat (limited to 'www/js/RefreshCtrl.js')
-rw-r--r--www/js/RefreshCtrl.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/www/js/RefreshCtrl.js b/www/js/RefreshCtrl.js
new file mode 100644
index 00000000..43ef9ac6
--- /dev/null
+++ b/www/js/RefreshCtrl.js
@@ -0,0 +1,28 @@
+/* jshint -W041 */
+/* jslint browser: true*/
+/* global cordova,StatusBar,angular,console */
+
+angular.module('zmApp.controllers').controller('zmApp.RefreshCtrl', ['$scope', '$ionicSideMenuDelegate', 'zm', '$stateParams', '$state', '$ionicHistory', function($scope, $ionicSideMenuDelegate, zm, $stateParams, $state, $ionicHistory)
+{
+ $scope.openMenu = function()
+ {
+ $ionicSideMenuDelegate.toggleLeft();
+ };
+
+ //-------------------------------------------------------------------------
+ // Controller Main
+ //------------------------------------------------------------------------
+ $scope.$on('$ionicView.afterEnter', function()
+ {
+ //console.log("**VIEW ** LowVersion Ctrl Entered");
+ $ionicSideMenuDelegate.canDragContent(false);
+ console.log ("jumping to: "+$stateParams.view);
+ $ionicHistory.nextViewOptions({
+ disableAnimate: true,
+ disableBack: true
+ });
+ $state.go($stateParams.view);
+ return;
+ });
+
+}]);