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) {
|
if (fromPage != toPage) {
|
||||||
var shouldAddItemToHistory;
|
var shouldAddItemToHistory;
|
||||||
|
|
||||||
shouldAddItemToHistory = typeof(addToHistory) == 'undefined' ? false : addToHistory;
|
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.slidePage(MochiKit.DOM.getElement(fromPage), MochiKit.DOM.getElement(toPage), 'LEFT');
|
||||||
this.setCurrentPage(toPage);
|
this.setCurrentPage(toPage);
|
||||||
|
|
||||||
if (shouldAddItemToHistory) {
|
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({'fromPage': fromPage, 'toPage': toPage}, "");
|
||||||
//# window.history.pushState();
|
|
||||||
//console.log("ADDED ITEM TO HISTORY");
|
|
||||||
} else {
|
} else {
|
||||||
//console.log("Skip HISTORY");
|
//console.log("Skip HISTORY");
|
||||||
}
|
}
|
||||||
@ -1245,7 +1244,8 @@ Clipperz.log("THE BROWSER IS OFFLINE");
|
|||||||
};
|
};
|
||||||
} else if (aPageName == 'unlockPage') {
|
} else if (aPageName == 'unlockPage') {
|
||||||
extraProperties = {
|
extraProperties = {
|
||||||
'mode': this.loginMode(),
|
'mode': this.loginMode(),
|
||||||
|
'proxyInfo': this.proxyInfo(),
|
||||||
}
|
}
|
||||||
} else if (aPageName == 'registrationPage') {
|
} else if (aPageName == 'registrationPage') {
|
||||||
} else if (aPageName == 'mainPage') {
|
} else if (aPageName == 'mainPage') {
|
||||||
|
Loading…
Reference in New Issue
Block a user