From 8014062b33dca7a053ee19e9eaec9b5102d0f3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Bakkeli?= Date: Fri, 22 Jul 2011 14:04:51 +0200 Subject: [PATCH] fikset hvordan modal i headeren henter url'er --- header.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/header.php b/header.php index 494d0c0..7c67536 100644 --- a/header.php +++ b/header.php @@ -112,9 +112,8 @@ $j("[href]").click(function(e) showUrlModal(this.href); e.preventDefault(); - host_length = this.href.indexOf("/", 8) + 1; - if(host_length == 0) host_length = this.href.length; - window.location = window.location.href.split("#")[0] + "#/" + this.href.substr(host_length); + var href = this.href.substr(); + window.location = window.location.href.split("#")[0] + "#" + href; }); $j("#simplemodal-overlay").live('click', function(){ $j.modal.close();