mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 23:41:29 +00:00
mobile: fix page to page navigation
This commit is contained in:
@@ -203,7 +203,7 @@ addEventListener("click", function(event)
|
||||
iui.showPage($(link.hash.substr(1)));
|
||||
setTimeout(unselect, 500);
|
||||
}
|
||||
else if (link == $("backButton")) {
|
||||
if (link == $("backButton")) {
|
||||
history.back();
|
||||
} else if (link.getAttribute("type") == "submit")
|
||||
{
|
||||
@@ -233,7 +233,10 @@ addEventListener("click", function(event)
|
||||
else if (!link.target)
|
||||
{
|
||||
link.setAttribute("selected", "progress");
|
||||
iui.showPageByHref(link.href, null, null, null, unselect);
|
||||
|
||||
var backwards = link.getAttribute("backwards");
|
||||
|
||||
iui.showPageByHref(link.href, null, null, null, unselect, backwards);
|
||||
}
|
||||
else
|
||||
return;
|
||||
@@ -361,6 +364,25 @@ function updatePage(page, fromPage)
|
||||
else
|
||||
backButton.style.display = "none";
|
||||
}
|
||||
|
||||
|
||||
var backButton = $("myBackButton");
|
||||
if (backButton)
|
||||
{
|
||||
var label = page.getAttribute("myBackLabel");
|
||||
|
||||
if (label)
|
||||
{
|
||||
backButton.style.display = "inline";
|
||||
backButton.innerHTML = label;
|
||||
backButton.href = page.getAttribute("myBackHref");
|
||||
backButton.target = page.getAttribute("myBackTarget");
|
||||
backButton.setAttribute("backwards", "true");
|
||||
}
|
||||
else
|
||||
backButton.style.display = "none";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function slidePages(fromPage, toPage, backwards)
|
||||
|
||||
Reference in New Issue
Block a user