diff --git a/src/scripts/controllers/new.js b/src/scripts/controllers/new.js index 34da693..25fce98 100644 --- a/src/scripts/controllers/new.js +++ b/src/scripts/controllers/new.js @@ -93,7 +93,7 @@ $scope.context.currentTab = tabName; }; - $rootScope.swipeActions.extentLeftSwipe = function () { + $rootScope.swipeActions.extendLeftSwipe = function () { var tabIndex = tabOrders.indexOf($scope.context.currentTab); if (tabIndex < tabOrders.length - 1) { @@ -104,7 +104,7 @@ } }; - $rootScope.swipeActions.extentRightSwipe = function () { + $rootScope.swipeActions.extendRightSwipe = function () { var tabIndex = tabOrders.indexOf($scope.context.currentTab); if (tabIndex > 0) { diff --git a/src/scripts/controllers/settings-ariang.js b/src/scripts/controllers/settings-ariang.js index 809c816..848a365 100644 --- a/src/scripts/controllers/settings-ariang.js +++ b/src/scripts/controllers/settings-ariang.js @@ -93,7 +93,7 @@ $scope.context.titlePreview = getFinalTitle(); }; - $rootScope.swipeActions.extentLeftSwipe = function () { + $rootScope.swipeActions.extendLeftSwipe = function () { var tabIndex = -1; if (!$scope.isCurrentGlobalTab()) { @@ -108,7 +108,7 @@ } }; - $rootScope.swipeActions.extentRightSwipe = function () { + $rootScope.swipeActions.extendRightSwipe = function () { var tabIndex = -1; if (!$scope.isCurrentGlobalTab()) { diff --git a/src/scripts/controllers/task-detail.js b/src/scripts/controllers/task-detail.js index be10ba3..502a09a 100644 --- a/src/scripts/controllers/task-detail.js +++ b/src/scripts/controllers/task-detail.js @@ -218,7 +218,7 @@ $scope.context.currentTab = tabName; }; - $rootScope.swipeActions.extentLeftSwipe = function () { + $rootScope.swipeActions.extendLeftSwipe = function () { var tabIndex = tabOrders.indexOf($scope.context.currentTab); if (tabIndex < tabOrders.length - 1) { @@ -229,7 +229,7 @@ } }; - $rootScope.swipeActions.extentRightSwipe = function () { + $rootScope.swipeActions.extendRightSwipe = function () { var tabIndex = tabOrders.indexOf($scope.context.currentTab); if (tabIndex > 0) { diff --git a/src/scripts/core/root.js b/src/scripts/core/root.js index 2ea7070..b21168b 100644 --- a/src/scripts/core/root.js +++ b/src/scripts/core/root.js @@ -350,14 +350,14 @@ return; } - if (!this.extentLeftSwipe || - (angular.isFunction(this.extentLeftSwipe) && !this.extentLeftSwipe())) { + if (!this.extendLeftSwipe || + (angular.isFunction(this.extendLeftSwipe) && !this.extendLeftSwipe())) { hideSidebar(); } }, rightSwipe: function () { - if (!this.extentRightSwipe || - (angular.isFunction(this.extentRightSwipe) && !this.extentRightSwipe())) { + if (!this.extendRightSwipe || + (angular.isFunction(this.extendRightSwipe) && !this.extendRightSwipe())) { showSidebar(); } } @@ -430,8 +430,8 @@ $rootScope.loadPromise = null; - delete $rootScope.swipeActions.extentLeftSwipe; - delete $rootScope.swipeActions.extentRightSwipe; + delete $rootScope.swipeActions.extendLeftSwipe; + delete $rootScope.swipeActions.extendRightSwipe; if (angular.isArray($rootScope.taskContext.list) && $rootScope.taskContext.list.length > 0) { $rootScope.taskContext.list.length = 0;