master
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;
};
$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) {

View File

@ -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()) {

View File

@ -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) {

View File

@ -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;