2013-05-03 11:57:08 +00:00
|
|
|
/**
|
2014-01-22 10:12:51 +00:00
|
|
|
* @name Visible Module
|
|
|
|
* @description This module is used to check if elements are visible or not.
|
|
|
|
* @author Tobias Reich
|
|
|
|
* @copyright 2014 by Tobias Reich
|
2013-05-03 11:57:08 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
visible = {
|
|
|
|
|
|
|
|
albums: function() {
|
2014-01-22 10:12:51 +00:00
|
|
|
if ($("#tools_albums").css("display")==="block") return true;
|
2013-05-03 11:57:08 +00:00
|
|
|
else return false;
|
|
|
|
},
|
|
|
|
|
2013-09-03 09:59:30 +00:00
|
|
|
album: function() {
|
2014-01-22 10:12:51 +00:00
|
|
|
if ($("#tools_album").css("display")==="block") return true;
|
2013-09-03 09:59:30 +00:00
|
|
|
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() {
|
2014-01-22 10:12:51 +00:00
|
|
|
if ($("#infobox.active").length>0) return true;
|
|
|
|
else return false;
|
2013-05-03 11:57:08 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
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;
|
|
|
|
},
|
|
|
|
|
2014-01-22 10:12:51 +00:00
|
|
|
signin: function() {
|
|
|
|
if ($(".message .sign_in").length>0) return true;
|
|
|
|
else return false;
|
|
|
|
},
|
|
|
|
|
2013-09-03 09:59:30 +00:00
|
|
|
contextMenu: function() {
|
|
|
|
if ($(".contextmenu").length>0) return true;
|
2013-05-03 11:57:08 +00:00
|
|
|
else return false;
|
2014-01-28 16:15:23 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
multiselect: function() {
|
|
|
|
if ($("#multiselect").length>0) return true;
|
|
|
|
else return false;
|
2013-05-03 11:57:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|