forked from Dakota628/jenkins-clean-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
master.js
35 lines (29 loc) · 899 Bytes
/
master.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Window load event used just in case window height is dependant upon images
var $jq = jQuery.noConflict(true);
function stickyFoot() {
var bodyHeight = $jq("body.yui-skin-sam").height();
var vwptHeight = $jq(window).height();
var footHeight = 45;
var headerHeight = $jq("#header").height();
$jq("#main-table").css("min-height",vwptHeight-footHeight-headerHeight);
}
function updateExecutors() {
$jq('#executors th.pane a.model-link').css('max-width',$jq("#side-panel").width() - 15);
}
$jq(document).ready(function() {
stickyFoot();
updateExecutors();
//hook into build executor update
_refreshPart = window.refreshPart;
window.refreshPart = function(id, url) {
_refreshPart(id, url);
if(id == 'executors') updateExecutors();
}
});
$jq(window).resize(function() {
stickyFoot();
updateExecutors();
});
$jq(document).scroll(function() {
stickyFoot();
});