mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2024-11-14 18:09:03 +01:00
Tentative fix for issue #89
Tentative fix for issue #89: - https://github.com/clipperz/password-manager/issues/89 Also fixed props passing to correctly show ‘offline copy’ header in unlock page.
This commit is contained in:
parent
f2b85dd506
commit
b79ed5b657
@ -1112,18 +1112,17 @@ Clipperz.log("THE BROWSER IS OFFLINE");
|
||||
if (fromPage != toPage) {
|
||||
var shouldAddItemToHistory;
|
||||
|
||||
if (this.proxyInfo()['proxyType'] != 'OFFLINE_COPY') {
|
||||
shouldAddItemToHistory = typeof(addToHistory) == 'undefined' ? false : addToHistory;
|
||||
} else {
|
||||
shouldAddItemToHistory = false;
|
||||
}
|
||||
|
||||
this.slidePage(MochiKit.DOM.getElement(fromPage), MochiKit.DOM.getElement(toPage), 'LEFT');
|
||||
this.setCurrentPage(toPage);
|
||||
|
||||
if (shouldAddItemToHistory) {
|
||||
//console.log("ADD ITEM TO HISTORY");
|
||||
//console.log("ADD ITEM TO HISTORY - window", window);
|
||||
//console.log("ADD ITEM TO HISTORY - window.history", window.history);
|
||||
window.history.pushState({'fromPage': fromPage, 'toPage': toPage}, "");
|
||||
//# window.history.pushState();
|
||||
//console.log("ADDED ITEM TO HISTORY");
|
||||
} else {
|
||||
//console.log("Skip HISTORY");
|
||||
}
|
||||
@ -1246,6 +1245,7 @@ Clipperz.log("THE BROWSER IS OFFLINE");
|
||||
} else if (aPageName == 'unlockPage') {
|
||||
extraProperties = {
|
||||
'mode': this.loginMode(),
|
||||
'proxyInfo': this.proxyInfo(),
|
||||
}
|
||||
} else if (aPageName == 'registrationPage') {
|
||||
} else if (aPageName == 'mainPage') {
|
||||
|
Loading…
Reference in New Issue
Block a user