Minor tweaks and corrections based on Tobias's comments

pull/232/head
Roman 10 years ago
parent 7026ea8603
commit 4ce4048584

@ -21,7 +21,7 @@ albums = {
startTime = new Date().getTime();
if(this.json == null) {
if(albums.json == null) {
lychee.api("getAlbums", function(data) {
/* Smart Albums */
@ -101,7 +101,7 @@ albums = {
},
refresh: function() {
this.json = null;
albums.json = null;
}
};

@ -195,8 +195,8 @@ build = {
modal += "<h1><a class='icon-lock'></a> Sign In</h1>";
modal += "<a class='close icon-remove-sign'></a>";
modal += "<div class='sign_in'>";
modal += "<input id='username' type='text' name='username' value='' placeholder='username'>";
modal += "<input id='password' type='password' name='password' value='' placeholder='password'>";
modal += "<input id='username' type='text' value='' placeholder='username'>";
modal += "<input id='password' type='password' value='' placeholder='password'>";
modal += "</div>";
modal += "<div id='version'>Version " + lychee.version + "<span> &#8211; <a target='_blank' href='" + lychee.updateURL + "'>Update available!</a><span></div>";
modal += "<a onclick='lychee.login()' class='button active'>Sign in</a>";

@ -160,7 +160,6 @@ view = {
//restore scroll
if (view.albums.content.scroll_pos != null) {
//$("html, body").setanimate({ scrollTop: view.albums.content.scroll_pos }, "slow");
$("html, body").scrollTop(view.albums.content.scroll_pos);
}
@ -263,8 +262,7 @@ view = {
view.albums.content.scroll_pos = $(document).scrollTop();
//scroll to top
$("html, body").animate({ scrollTop: 0 }, "slow");
$("html, body").scrollTop(0);
},
title: function(photoID) {

@ -6,8 +6,6 @@
# @copyright 2014 by Tobias Reich
###
header('Content-Type: text/html; charset=UTF-8');
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');

Loading…
Cancel
Save