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;
|
||||
min-height: 100%;
|
||||
font-family: FeuraSans, sans-serif;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.red { background: #e74c3c; color: #ecf0f1; }
|
||||
|
@ -110,7 +111,7 @@ section > footer {
|
|||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-width: 100% !important;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
|
|
50
js/App.js
50
js/App.js
|
@ -14,7 +14,34 @@ function App() {
|
|||
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) {
|
||||
|
||||
// do not reload page
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
@ -49,29 +76,6 @@ function App() {
|
|||
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.ttrss = new TinyTinyRSS(this, localStorage.server_url, localStorage.session_id);
|
||||
|
|
Reference in a new issue