}
},
- showPageByHref: function(href, args, method, replace, cb, backwards)
+ showPageByHref: function(href, args, method, replace, cb, bw)
{
var req = new XMLHttpRequest();
req.onerror = function()
{
var frag = document.createElement("div");
frag.innerHTML = req.responseText;
- iui.insertPages(frag.childNodes, backwards);
+ iui.insertPages(frag.childNodes, bw);
}
if (cb)
setTimeout(cb, 1000, true);
}
},
- insertPages: function(nodes, backwards)
+ insertPages: function(nodes, bw)
{
var targetPage;
for (var i = 0; i < nodes.length; ++i)
}
if (targetPage)
- iui.showPage(targetPage, backwards);
+ iui.showPage(targetPage, bw);
},
getSelectedPage: function()
iui.showPage($(link.hash.substr(1)));
setTimeout(unselect, 500);
}
- if (link == $("backButton")) {
+ else if (link == $("backButton"))
history.back();
- } else if (link.getAttribute("type") == "submit")
+ else if (link.getAttribute("type") == "submit")
{
var form = findParent(link, "form");
if (form.target == "_self")
else if (!link.target)
{
link.setAttribute("selected", "progress");
-
- var backwards = link.getAttribute("backwards");
-
- iui.showPageByHref(link.href, null, null, null, unselect, backwards);
+ var bw = link.getAttribute("backwards");
+ iui.showPageByHref(link.href, null, null, null, unselect, bw);
}
else
return;
}
else
backButton.style.display = "none";
- }
-
+ }
var backButton = $("myBackButton");
if (backButton)