34413640e4
New: - Protect public albums with passwords - Export to Dropbox - Sharing-Link is displayed directly inside the sharing-dropdown - Delete photos with cmd+backspace Improved: - Massive speed improvements - Changing the title, starring, description, etc. is now instant - Longer filenames for pictures (more security) ShortLinks are removed for more independency and privacy. There are a lot of changes under the hood, including a lot of bug fixes and improvements. Please report every bug you find! How to update: 1. Replace all files, excluding `uploads/` and `php/config.php` 2. Open `php/update.php` in your browser
48 lines
994 B
JavaScript
Executable File
48 lines
994 B
JavaScript
Executable File
/**
|
|
* @name visible.js
|
|
* @author Philipp Maurer
|
|
* @author Tobias Reich
|
|
* @copyright 2013 by Philipp Maurer, Tobias Reich
|
|
*
|
|
* Visible Module
|
|
* This module is used to check if elements are visible or not.
|
|
*/
|
|
|
|
visible = {
|
|
|
|
albums: function() {
|
|
if ($("#tools_albums").css("display")=="block") return true;
|
|
else return false;
|
|
},
|
|
|
|
album: function() {
|
|
if ($("#tools_album").css("display")=="block") return true;
|
|
else return false;
|
|
},
|
|
|
|
photo: function() {
|
|
if ($("#imageview.fadeIn").length>0) return true;
|
|
else return false;
|
|
},
|
|
|
|
infobox: function() {
|
|
if (parseInt(lychee.infobox.css("right").replace("px", ""))==-320) return false;
|
|
else return true;
|
|
},
|
|
|
|
controls: function() {
|
|
if (lychee.loadingBar.css("opacity")<1) return false;
|
|
else return true;
|
|
},
|
|
|
|
message: function() {
|
|
if ($(".message").length>0) return true;
|
|
else return false;
|
|
},
|
|
|
|
contextMenu: function() {
|
|
if ($(".contextmenu").length>0) return true;
|
|
else return false;
|
|
}
|
|
|
|
} |