diff options
author | Arun Persaud <arun@nubati.net> | 2012-02-07 20:27:29 -0800 |
---|---|---|
committer | Arun Persaud <apersaud@lbl.gov> | 2012-02-07 20:27:29 -0800 |
commit | f040c97fefa22ffb6e5478fcbdcada36d193ce98 (patch) | |
tree | 6a8d5d0af135490d2426a4722d606f1fcc9a30e7 | |
parent | 4dd37e616478fef02cbcb32049c6b94891a3cf35 (diff) | |
download | photo-tags-f040c97fefa22ffb6e5478fcbdcada36d193ce98.tar.gz photo-tags-f040c97fefa22ffb6e5478fcbdcada36d193ce98.tar.bz2 photo-tags-f040c97fefa22ffb6e5478fcbdcada36d193ce98.zip |
added function for permalink update
-rw-r--r-- | index.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -219,15 +219,19 @@ function load_content(a) { checkbutton(); }); + update_permalink() +} + +function update_permalink() { /* update permalink */ permalink="<?php echo $webbase ?>"; + if(T!="") permalink += '/tag/' + T; if(a!=1) permalink += '/page/' + a; - d3.select(".permalink").html("Permalink: <a href=\""+permalink+"\">"+permalink+"</a>"); } |