projects
/
photo-tags.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dd37e6
)
added function for permalink update
author
Arun Persaud
<arun@nubati.net>
Wed, 8 Feb 2012 04:27:29 +0000
(20:27 -0800)
committer
Arun Persaud
<apersaud@lbl.gov>
Wed, 8 Feb 2012 04:27:29 +0000
(20:27 -0800)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index d178a41fec0b5530e309cf1aecafba45131d357c..62839eb1543b879427d06a81227a196c9a983102 100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-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>");
}