summaryrefslogtreecommitdiffstats
path: root/js/photo-tags.js
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2012-11-17 15:09:14 -0800
committerArun Persaud <arun@nubati.net>2012-11-17 15:09:14 -0800
commit0016cfb185872b6de1050f542e7c6b8e20e20f77 (patch)
treeef1f479ee29b7d9a1aee77e7cf41bc6dadb9bf3e /js/photo-tags.js
parentafaa0f8f6ae13beb58b9f04beecbb60c339a6808 (diff)
downloadphoto-tags-0016cfb185872b6de1050f542e7c6b8e20e20f77.tar.gz
photo-tags-0016cfb185872b6de1050f542e7c6b8e20e20f77.tar.bz2
photo-tags-0016cfb185872b6de1050f542e7c6b8e20e20f77.zip
some code cleanup
Diffstat (limited to 'js/photo-tags.js')
-rw-r--r--js/photo-tags.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/js/photo-tags.js b/js/photo-tags.js
index e577a15..2b21eb5 100644
--- a/js/photo-tags.js
+++ b/js/photo-tags.js
@@ -143,16 +143,9 @@ function next_page() {
update_page_index();
}
-function prev_pic() {
-}
-
-function next_pic() {
-}
-
function load_pic(myid) {
ID=myid;
update_page_index();
- update_thumbnails();
load_content();
}
@@ -218,12 +211,13 @@ function update_thumbnails(){
/* resort elements */
d3.select(".nextprev").select("ul").selectAll("li").sort(function(a,b){return a.id-b.id;});
- d3.select(".nextprev").select("ul").selectAll("li").select("a").select("img").classed("current",function(d){return (d.id==IDcurr);});
+ d3.select(".nextprev").select("ul").selectAll("li").select("a").select("img")
+ .classed("current",function(d){return (d.id==IDcurr);});
/* add links for left/right arrows */
if (IDprev != -1 )
- d3.select(".left").on("click", function() { load_pic(IDprev); });
+ d3.select(".left" ).on("click", function() { load_pic(IDprev); });
if (IDnext != -1 )
d3.select(".right").on("click", function() { load_pic(IDnext); });