mirror of
https://github.com/moparisthebest/mail
synced 2024-12-24 08:18:48 -05:00
Fix back button tests
This commit is contained in:
parent
4a38820501
commit
b887aaaa28
@ -34,25 +34,19 @@ define(function(require) {
|
|||||||
|
|
||||||
if (backBtnHandler.scope.state.lightbox) {
|
if (backBtnHandler.scope.state.lightbox) {
|
||||||
// closes the lightbox (error msgs, writer, ...)
|
// closes the lightbox (error msgs, writer, ...)
|
||||||
backBtnHandler.scope.$apply(function() {
|
backBtnHandler.scope.state.lightbox = undefined;
|
||||||
backBtnHandler.scope.state.lightbox = undefined;
|
|
||||||
});
|
|
||||||
axe.debug(DEBUG_TAG, 'lightbox closed');
|
axe.debug(DEBUG_TAG, 'lightbox closed');
|
||||||
|
backBtnHandler.scope.$apply();
|
||||||
} else if (backBtnHandler.scope.state.read && backBtnHandler.scope.state.read.open) {
|
} else if (backBtnHandler.scope.state.read && backBtnHandler.scope.state.read.open) {
|
||||||
// closes the reader
|
// closes the reader
|
||||||
backBtnHandler.scope.$apply(function() {
|
backBtnHandler.scope.state.read.toggle(false);
|
||||||
backBtnHandler.scope.state.read.toggle(false);
|
|
||||||
});
|
|
||||||
axe.debug(DEBUG_TAG, 'reader closed');
|
axe.debug(DEBUG_TAG, 'reader closed');
|
||||||
|
backBtnHandler.scope.$apply();
|
||||||
} else if (backBtnHandler.scope.state.nav && backBtnHandler.scope.state.nav.open) {
|
} else if (backBtnHandler.scope.state.nav && backBtnHandler.scope.state.nav.open) {
|
||||||
// closes the navigation
|
// closes the navigation
|
||||||
backBtnHandler.scope.$apply(function() {
|
backBtnHandler.scope.state.nav.toggle(false);
|
||||||
backBtnHandler.scope.state.nav.toggle(false);
|
|
||||||
});
|
|
||||||
axe.debug(DEBUG_TAG, 'navigation closed');
|
axe.debug(DEBUG_TAG, 'navigation closed');
|
||||||
|
backBtnHandler.scope.$apply();
|
||||||
} else {
|
} else {
|
||||||
// exits the app
|
// exits the app
|
||||||
navigator.app.exitApp();
|
navigator.app.exitApp();
|
||||||
|
Loading…
Reference in New Issue
Block a user