From d117dfe351a00508628030253040da3f3f7da325 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 7 Oct 2011 11:34:03 +0200 Subject: [PATCH] dont reload page for local urls --- static/js/pandora/ui/infoView.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/js/pandora/ui/infoView.js b/static/js/pandora/ui/infoView.js index 0369bf6f..0041fdc9 100644 --- a/static/js/pandora/ui/infoView.js +++ b/static/js/pandora/ui/infoView.js @@ -390,6 +390,13 @@ pandora.ui.infoView = function(data) { }).join(', '); } + $text.find('a').click(function(event) { + if (event.target.hostname == document.location.hostname && + event.target.pathname.substr(0, 5) != '/url=') { + pandora.URL.push(event.target.pathname); + return false; + } + }); function renderList() { pandora.api.get({ id: data.id,