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-02-09 21:23:09 +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-02-09 21:23:09 +00:00
|
|
|
if ($('#tools_album').css('display')==='block') return true;
|
2013-09-03 09:59:30 +00:00
|
|
|
else return false;
|
|
|
|
},
|
|
|
|
|
|
|
|
photo: function() {
|
2014-02-09 21:23:09 +00:00
|
|
|
if ($('#imageview.fadeIn').length>0) return true;
|
|
|
|
else return false;
|
|
|
|
},
|
2014-02-17 15:22:53 +00:00
|
|
|
|
2014-02-09 21:23:09 +00:00
|
|
|
search: function() {
|
|
|
|
if (search.code!==null&&search.code!=='') return true;
|
2013-05-03 11:57:08 +00:00
|
|
|
else return false;
|
|
|
|
},
|
|
|
|
|
|
|
|
infobox: function() {
|
2014-02-09 21:23:09 +00:00
|
|
|
if ($('#infobox.active').length>0) return true;
|
2014-01-22 10:12:51 +00:00
|
|
|
else return false;
|
2013-05-03 11:57:08 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
controls: function() {
|
2014-02-09 21:23:09 +00:00
|
|
|
if (lychee.loadingBar.css('opacity')<1) return false;
|
2013-09-03 09:59:30 +00:00
|
|
|
else return true;
|
|
|
|
},
|
|
|
|
|
|
|
|
message: function() {
|
2014-02-09 21:23:09 +00:00
|
|
|
if ($('.message').length>0) return true;
|
2013-09-03 09:59:30 +00:00
|
|
|
else return false;
|
|
|
|
},
|
|
|
|
|
2014-01-22 10:12:51 +00:00
|
|
|
signin: function() {
|
2014-02-09 21:23:09 +00:00
|
|
|
if ($('.message .sign_in').length>0) return true;
|
2014-01-22 10:12:51 +00:00
|
|
|
else return false;
|
|
|
|
},
|
|
|
|
|
2013-09-03 09:59:30 +00:00
|
|
|
contextMenu: function() {
|
2014-02-09 21:23:09 +00:00
|
|
|
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
|
|
|
},
|
2014-02-17 15:22:53 +00:00
|
|
|
|
2014-01-28 16:15:23 +00:00
|
|
|
multiselect: function() {
|
2014-02-09 21:23:09 +00:00
|
|
|
if ($('#multiselect').length>0) return true;
|
2014-01-28 16:15:23 +00:00
|
|
|
else return false;
|
2013-05-03 11:57:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|