Revision 01fa9e32 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
11 | 11 |
|
12 | 12 |
// set lt-sidebar height |
13 | 13 |
ui.setSidebarHeight = function(){ |
14 |
WindowHeight = $(window).height(); |
|
15 |
ltSidebarHeight = WindowHeight - $('.header').outerHeight(); |
|
14 |
var WindowHeight = $(window).height(); |
|
15 |
var h1= WindowHeight - $('.header').outerHeight(); |
|
16 |
var h2= $('.main.details').outerHeight(); |
|
17 |
if (h2>h1) { |
|
18 |
var ltSidebarHeight = h2; |
|
19 |
} else { |
|
20 |
var ltSidebarHeight = h1; |
|
21 |
} |
|
16 | 22 |
$('.lt-sidebar').height(ltSidebarHeight); |
17 | 23 |
} |
18 | 24 |
|
19 |
ui.CntCheckedVms = function(){ |
|
20 |
return $('.vm_container .checkbox-checked').length; |
|
21 |
} |
|
25 |
|
|
22 | 26 |
|
23 | 27 |
$(document).ready(function(){ |
24 | 28 |
|
... | ... | |
51 | 55 |
e.preventDefault(); |
52 | 56 |
}) |
53 | 57 |
|
54 |
$('.vm_container .vm_options .select').click(function(e){ |
|
55 |
//var totalSelects = ui.CntCheckedVms(); |
|
56 |
//console.log(totalSelects); |
|
57 |
}) |
|
58 |
|
|
58 | 59 |
|
59 | 60 |
|
60 | 61 |
}) |
Also available in: Unified diff