mirror of
				http://git.whoc.org.uk/git/password-manager.git
				synced 2025-11-04 04:57:35 +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:
		@@ -1112,18 +1112,17 @@ Clipperz.log("THE BROWSER IS OFFLINE");
 | 
				
			|||||||
		if (fromPage != toPage) {
 | 
							if (fromPage != toPage) {
 | 
				
			||||||
			var	shouldAddItemToHistory;
 | 
								var	shouldAddItemToHistory;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								if (this.proxyInfo()['proxyType'] != 'OFFLINE_COPY') {
 | 
				
			||||||
				shouldAddItemToHistory = typeof(addToHistory) == 'undefined' ? false : addToHistory;
 | 
									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");
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
@@ -1246,6 +1245,7 @@ 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') {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user