2013-06-12 18:31:16 +03:00
|
|
|
/**
|
|
|
|
* Main javascript code for the backend section of Easy!Appointments.
|
|
|
|
*/
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(window).resize(function() {
|
2013-06-13 19:25:34 +03:00
|
|
|
Backend.placeFooterToBottom();
|
2013-06-12 18:31:16 +03:00
|
|
|
}).trigger('resize');
|
|
|
|
});
|
|
|
|
|
2013-06-13 19:25:34 +03:00
|
|
|
|
2013-06-12 18:31:16 +03:00
|
|
|
/**
|
2013-06-13 19:25:34 +03:00
|
|
|
* This namespace contains functions that are used in the backend section of
|
|
|
|
* the applications.
|
|
|
|
*
|
|
|
|
* @namespace Backend
|
2013-06-12 18:31:16 +03:00
|
|
|
*/
|
2013-06-13 19:25:34 +03:00
|
|
|
var Backend = {
|
|
|
|
/**
|
|
|
|
* Place the backend footer always on the bottom of the page.
|
|
|
|
*/
|
|
|
|
placeFooterToBottom: function() {
|
|
|
|
var footerHandle = $('#footer');
|
|
|
|
|
|
|
|
if (window.innerHeight > $('body').height()) {
|
|
|
|
footerHandle.css({
|
|
|
|
'position' : 'absolute',
|
|
|
|
'width' : '100%',
|
|
|
|
'bottom' : '0px'
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
footerHandle.css({
|
|
|
|
'position' : 'static'
|
|
|
|
});
|
|
|
|
}
|
2013-06-12 18:31:16 +03:00
|
|
|
}
|
2013-06-13 19:25:34 +03:00
|
|
|
}
|