summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files 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: <a href=\""+permalink+"\">"+permalink+"</a>");
}