better display of description and time for a single photo master
authorArun Persaud <arun@nubati.net>
Fri, 22 Feb 2013 07:02:43 +0000 (23:02 -0800)
committerArun Persaud <arun@nubati.net>
Fri, 22 Feb 2013 07:02:43 +0000 (23:02 -0800)
js/photo-tags.js

index 9ec4d25..ce4ee49 100644 (file)
@@ -96,9 +96,9 @@ function load_content() {
                .text(function(d) {
                    var date = new Date(d.time*1000);
                    if (d.description=="")
-                       return "Time: "+date.toUTCString();
+                       return " "+date.toUTCString();
                    else
-                       return "Description: "+d.description + "Time: "+date.toUTCString();
+                       return " "+d.description + " "+date.toUTCString();
                });
            /* show tags */
            d3.json(webbase+"/getjson.php?IDT="+ID, function(jsontag) {