X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=htdocs%2Fjavascript%2Fxorg.js;h=3ea7bec1c7b0f810917ed99f7c19541a04148196;hb=79b8b816945bb0c6fb25b13e5e117e155d04dd8d;hp=89c35b208c31bc5cb552473044e27be9d584e441;hpb=59bec5bc5512a4f962ebac7b0346f59cdf56f901;p=platal.git diff --git a/htdocs/javascript/xorg.js b/htdocs/javascript/xorg.js index 89c35b2..3ea7bec 100644 --- a/htdocs/javascript/xorg.js +++ b/htdocs/javascript/xorg.js @@ -212,6 +212,7 @@ function auto_links() { url = document.URL; fqdn = url.replace(/^https?:\/\/([^\/]*)\/.*$/,'$1'); light = (url.indexOf('display=light') > url.indexOf('?')); + resource_page = (url.indexOf('rss') > -1 || url.indexOf('ical') > -1); $("a,link").each( function(i) { @@ -235,7 +236,7 @@ function auto_links() { href = 'http://' + fqdn + '/' + href; } } - if (this.nodeName.toLowerCase() == 'a') { + if (this.nodeName.toLowerCase() == 'a' && !resource_page) { if (rss && href.indexOf('prefs/rss') < 0 && (href.indexOf('xml') > -1 || href.indexOf('hash'))) { goodiesPopup(this, __goodies_rss); } else if (ical) {