Commit 830fd14f authored by fred's avatar fred
Browse files

workaround the check for local page

parent d854fc91
......@@ -39,7 +39,11 @@ $(function() {
$("a, area").removeClass('loading').unbind('click').on('click',function() {
$(this).addClass('loading');
var href = $(this).attr("href");
if (href.indexOf(document.domain) > -1 || href.indexOf(':') === -1) {
/* this checks the link points to a local document, be
* it because it's just a path, or because the server
* part points to the same domain */
if (href.indexOf(document.domain) > -1 ||
href.indexOf(':') === -1 || href.indexOf(':') > 5) {
loadPage(href);
return false;
}else{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment