改点小bug
This commit is contained in:
parent
6ddd79e2b0
commit
d14a0eb405
|
|
@ -264,6 +264,7 @@ app.controller('bookmarksCtr', ['$scope', '$state', '$stateParams', '$filter', '
|
||||||
$scope.bookmarks.unshift(data);
|
$scope.bookmarks.unshift(data);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
$scope.forbidTransition = true;
|
||||||
getBookmarks();
|
getBookmarks();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -287,7 +288,7 @@ app.controller('bookmarksCtr', ['$scope', '$state', '$stateParams', '$filter', '
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$scope.loadBusy = true;
|
$scope.loadBusy = true;
|
||||||
if (params.showStyle == 'table') {
|
if (params.showStyle == 'table' && (!$scope.forbidTransition)) {
|
||||||
$('.js-table-bookmarks').transition('hide');
|
$('.js-table-bookmarks').transition('hide');
|
||||||
}
|
}
|
||||||
bookmarkService.getBookmarks(params)
|
bookmarkService.getBookmarks(params)
|
||||||
|
|
@ -330,9 +331,9 @@ app.controller('bookmarksCtr', ['$scope', '$state', '$stateParams', '$filter', '
|
||||||
index: 0
|
index: 0
|
||||||
});
|
});
|
||||||
if (!$scope.forbidTransition) {
|
if (!$scope.forbidTransition) {
|
||||||
$scope.forbidTransition = false;
|
|
||||||
transition();
|
transition();
|
||||||
}
|
}
|
||||||
|
$scope.forbidTransition = false;
|
||||||
$scope.loadBusy = false;
|
$scope.loadBusy = false;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue