2013-05-03 11:57:08 +00:00
|
|
|
/**
|
|
|
|
* @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;
|
|
|
|
},
|
|
|
|
|
2013-09-03 09:59:30 +00:00
|
|
|
album: function() {
|
|
|
|
if ($("#tools_album").css("display")=="block") return true;
|
|
|
|
else return false;
|
|
|
|
},
|
|
|
|
|
|
|
|
photo: function() {
|
|
|
|
if ($("#imageview.fadeIn").length>0) return true;
|
2013-05-03 11:57:08 +00:00
|
|
|
else return false;
|
|
|
|
},
|
|
|
|
|
|
|
|
infobox: function() {
|
|
|
|
if (parseInt(lychee.infobox.css("right").replace("px", ""))==-320) return false;
|
|
|
|
else return true;
|
|
|
|
},
|
|
|
|
|
|
|
|
controls: function() {
|
2013-09-03 09:59:30 +00:00
|
|
|
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;
|
2013-05-03 11:57:08 +00:00
|
|
|
else return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|