|
@@ -41,6 +41,12 @@ $(document).ready(function(){
|
|
|
|
|
|
/* Search */
|
|
|
$("#search").on("keyup click", function() { search.find($(this).val()) });
|
|
|
+
|
|
|
+ /* Clear Search */
|
|
|
+ $("#clearSearch").on(event_name, function () {
|
|
|
+ $("#search").focus();
|
|
|
+ search.reset();
|
|
|
+ });
|
|
|
|
|
|
/* Back Buttons */
|
|
|
$("#button_back_home").on(event_name, function() { lychee.goto("") });
|
|
@@ -100,7 +106,7 @@ $(document).ready(function(){
|
|
|
if (visible.photo()) photo.setTitle(photo.getID());
|
|
|
else album.setTitle(album.getID());
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
/* Navigation */
|
|
|
.on("click", ".album", function() { lychee.goto($(this).attr("data-id")) })
|
|
|
.on("click", ".photo", function() { lychee.goto(album.getID() + "/" + $(this).attr("data-id")) })
|