From 83aee4105e19ca4b5db7570ec2f26f28786a9a4b Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 30 Jan 2015 09:34:11 -0300 Subject: [PATCH] function renamed: more detailed --- index.html | 6 +++--- js/controllers/index.js | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 17818cda7..484eb41c6 100644 --- a/index.html +++ b/index.html @@ -30,8 +30,8 @@ + ng-swipe-left="closeMenu()" + ng-swipe-right="openMenu()">
Loading... @@ -129,7 +129,7 @@ ng-class="{'main':$root.iden && !$root.starting && !$root.hideNavigation && !$root.wpInputFocused}" ng-view> - +
diff --git a/js/controllers/index.js b/js/controllers/index.js index 6362fa1f6..3f4e85eac 100644 --- a/js/controllers/index.js +++ b/js/controllers/index.js @@ -23,8 +23,12 @@ angular.module('copayApp.controllers').controller('IndexController', function($s }); }; - $scope.swipe = function(invert) { - go.swipe(invert); + $scope.openMenu = function() { + go.swipe(true); + }; + + $scope.closeMenu = function() { + go.swipe(); }; });