From 0488219be9cef0ce100ebf2aeb6c8d91fa9ca692 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Tue, 7 Feb 2012 20:38:20 -0800 Subject: fix permalink --- index.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 9e4bc15..93bc9e3 100644 --- a/index.php +++ b/index.php @@ -221,18 +221,20 @@ function load_content(a) { checkbutton(); }); - update_permalink() + update_permalink(a) } -function update_permalink() { +function update_permalink(page) { /* update permalink */ permalink = webbase; if(T!="") permalink += '/tag/' + T; - if(a!=1) - permalink += '/page/' + a; + if(page!=1) + permalink += '/page/' + page; + if(ID>0) + permalink += '/pic/' + ID; d3.select(".permalink").html("Permalink: "+permalink+""); } -- cgit v1.2.3-18-g5258