Small fixes for links inside an article

This commit is contained in:
mossroy 2013-05-10 16:45:25 +02:00
parent ecf48a0d41
commit fb8408e878

View File

@ -164,12 +164,11 @@ define(function(require) {
title = title[0];
if (title.fileNr == 255) {
localArchive.resolveRedirect(title, readArticle);
return;
}
}
else {
localArchive.readArticle(title, displayArticleInForm);
}
}
/**
* Display the the given HTML article in the web page,
@ -190,6 +189,9 @@ define(function(require) {
else if (url.substring(0,4) === "http") {
// It's an external link : do nothing
}
else if (url.substring(0,2) === ".." || url.substring(0,4) === "./..") {
// It's a link to another language : TODO redirect to the online article?
}
else {
// It's a link to another article : add an onclick event to go to this article
// instead of following the link