VRFS-1608 remove check that bypasses call to changeScreen if the user is already on the screen with the same internal name
This commit is contained in:
parent
838a3d4d13
commit
1d96f1b981
|
|
@ -488,6 +488,8 @@
|
|||
return postFunction(e);
|
||||
}
|
||||
|
||||
console.log("location=%o", location);
|
||||
|
||||
var screen = location.page.substring(1); // remove leading slash
|
||||
var accepted = screenEvent(currentScreen, 'beforeLeave', {screen:screen, hash: context.location.hash});
|
||||
if(accepted === false) {
|
||||
|
|
@ -503,10 +505,6 @@
|
|||
}
|
||||
|
||||
function changeToScreen(screen, data) {
|
||||
if (screen === currentScreen) {
|
||||
return;
|
||||
}
|
||||
|
||||
changeScreen(screen, data);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue