This commit is contained in:
MaysWind 2021-02-14 12:21:52 +08:00
parent d153b95fc7
commit 05e0fb6b4f
4 changed files with 12 additions and 12 deletions

View file

@ -93,7 +93,7 @@
$scope.context.currentTab = tabName; $scope.context.currentTab = tabName;
}; };
$rootScope.swipeActions.extentLeftSwipe = function () { $rootScope.swipeActions.extendLeftSwipe = function () {
var tabIndex = tabOrders.indexOf($scope.context.currentTab); var tabIndex = tabOrders.indexOf($scope.context.currentTab);
if (tabIndex < tabOrders.length - 1) { if (tabIndex < tabOrders.length - 1) {
@ -104,7 +104,7 @@
} }
}; };
$rootScope.swipeActions.extentRightSwipe = function () { $rootScope.swipeActions.extendRightSwipe = function () {
var tabIndex = tabOrders.indexOf($scope.context.currentTab); var tabIndex = tabOrders.indexOf($scope.context.currentTab);
if (tabIndex > 0) { if (tabIndex > 0) {

View file

@ -93,7 +93,7 @@
$scope.context.titlePreview = getFinalTitle(); $scope.context.titlePreview = getFinalTitle();
}; };
$rootScope.swipeActions.extentLeftSwipe = function () { $rootScope.swipeActions.extendLeftSwipe = function () {
var tabIndex = -1; var tabIndex = -1;
if (!$scope.isCurrentGlobalTab()) { if (!$scope.isCurrentGlobalTab()) {
@ -108,7 +108,7 @@
} }
}; };
$rootScope.swipeActions.extentRightSwipe = function () { $rootScope.swipeActions.extendRightSwipe = function () {
var tabIndex = -1; var tabIndex = -1;
if (!$scope.isCurrentGlobalTab()) { if (!$scope.isCurrentGlobalTab()) {

View file

@ -218,7 +218,7 @@
$scope.context.currentTab = tabName; $scope.context.currentTab = tabName;
}; };
$rootScope.swipeActions.extentLeftSwipe = function () { $rootScope.swipeActions.extendLeftSwipe = function () {
var tabIndex = tabOrders.indexOf($scope.context.currentTab); var tabIndex = tabOrders.indexOf($scope.context.currentTab);
if (tabIndex < tabOrders.length - 1) { if (tabIndex < tabOrders.length - 1) {
@ -229,7 +229,7 @@
} }
}; };
$rootScope.swipeActions.extentRightSwipe = function () { $rootScope.swipeActions.extendRightSwipe = function () {
var tabIndex = tabOrders.indexOf($scope.context.currentTab); var tabIndex = tabOrders.indexOf($scope.context.currentTab);
if (tabIndex > 0) { if (tabIndex > 0) {

View file

@ -350,14 +350,14 @@
return; return;
} }
if (!this.extentLeftSwipe || if (!this.extendLeftSwipe ||
(angular.isFunction(this.extentLeftSwipe) && !this.extentLeftSwipe())) { (angular.isFunction(this.extendLeftSwipe) && !this.extendLeftSwipe())) {
hideSidebar(); hideSidebar();
} }
}, },
rightSwipe: function () { rightSwipe: function () {
if (!this.extentRightSwipe || if (!this.extendRightSwipe ||
(angular.isFunction(this.extentRightSwipe) && !this.extentRightSwipe())) { (angular.isFunction(this.extendRightSwipe) && !this.extendRightSwipe())) {
showSidebar(); showSidebar();
} }
} }
@ -430,8 +430,8 @@
$rootScope.loadPromise = null; $rootScope.loadPromise = null;
delete $rootScope.swipeActions.extentLeftSwipe; delete $rootScope.swipeActions.extendLeftSwipe;
delete $rootScope.swipeActions.extentRightSwipe; delete $rootScope.swipeActions.extendRightSwipe;
if (angular.isArray($rootScope.taskContext.list) && $rootScope.taskContext.list.length > 0) { if (angular.isArray($rootScope.taskContext.list) && $rootScope.taskContext.list.length > 0) {
$rootScope.taskContext.list.length = 0; $rootScope.taskContext.list.length = 0;