fixed problem with navigation after login
This commit is contained in:
parent
08e013a3da
commit
c1a3d905ce
2 changed files with 29 additions and 24 deletions
|
@ -3,6 +3,7 @@ html, body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
font-family: FeuraSans, sans-serif;
|
font-family: FeuraSans, sans-serif;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.red { background: #e74c3c; color: #ecf0f1; }
|
.red { background: #e74c3c; color: #ecf0f1; }
|
||||||
|
@ -110,7 +111,7 @@ section > footer {
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100% !important;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
50
js/App.js
50
js/App.js
|
@ -14,7 +14,34 @@ function App() {
|
||||||
else _this.showPrevious();
|
else _this.showPrevious();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// FIXME move that code somewhere else
|
||||||
|
$(".info.swipe").ontouchend = function(e) {
|
||||||
|
localStorage.info_swipe = true;
|
||||||
|
$(".info.swipe").addClass("hidden");
|
||||||
|
};
|
||||||
|
|
||||||
|
if(localStorage.info_swipe) {
|
||||||
|
$(".info.swipe").addClass("hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var request = window.navigator.mozApps.getSelf();
|
||||||
|
request.onsuccess = function() {
|
||||||
|
$("#version").innerHTML = request.result.manifest.version;
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
App.prototype.authenticate = function() {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
App.prototype.after_login = function() {
|
||||||
|
|
||||||
|
var _this = this;
|
||||||
|
|
||||||
window.onhashchange = function(e) {
|
window.onhashchange = function(e) {
|
||||||
|
|
||||||
// do not reload page
|
// do not reload page
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
@ -49,29 +76,6 @@ function App() {
|
||||||
window.location.hash = "#";
|
window.location.hash = "#";
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME move that code somewhere else
|
|
||||||
$(".info.swipe").ontouchend = function(e) {
|
|
||||||
localStorage.info_swipe = true;
|
|
||||||
$(".info.swipe").addClass("hidden");
|
|
||||||
};
|
|
||||||
|
|
||||||
if(localStorage.info_swipe) {
|
|
||||||
$(".info.swipe").addClass("hidden");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
var request = window.navigator.mozApps.getSelf();
|
|
||||||
request.onsuccess = function() {
|
|
||||||
$("#version").innerHTML = request.result.manifest.version;
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
App.prototype.authenticate = function() {
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
App.prototype.after_login = function() {
|
|
||||||
this.changeToPage("#list");
|
this.changeToPage("#list");
|
||||||
|
|
||||||
this.ttrss = new TinyTinyRSS(this, localStorage.server_url, localStorage.session_id);
|
this.ttrss = new TinyTinyRSS(this, localStorage.server_url, localStorage.session_id);
|
||||||
|
|
Reference in a new issue