Revision 82bf6df0 ui/templates/standard.html
b/ui/templates/standard.html | ||
---|---|---|
246 | 246 |
} |
247 | 247 |
|
248 | 248 |
// set confirm box position |
249 |
if (window.innerHeight - 200 < $('#machinesview').height())
|
|
249 |
if (window.innerHeight - 220 < $('#machinesview').height())
|
|
250 | 250 |
$('.confirm_multiple').addClass('fixed'); |
251 | 251 |
else |
252 | 252 |
$('.confirm_multiple').removeClass('fixed'); |
... | ... | |
277 | 277 |
// set the label of the multiple buttons |
278 | 278 |
$('div.confirm_multiple button.yes').text('Confirm All'); |
279 | 279 |
$('div.confirm_multiple button.no').text('Cancel All'); |
280 |
|
|
281 |
// reposition multiple confirmation box on window resize |
|
282 |
$(window).resize(function(){ |
|
283 |
if (this.innerHeight - 220 < $('#machinesview').height()) |
|
284 |
$('.confirm_multiple').addClass('fixed'); |
|
285 |
else |
|
286 |
$('.confirm_multiple').removeClass('fixed'); |
|
287 |
}); |
|
288 |
|
|
280 | 289 |
// start updating vm list |
281 | 290 |
update_vms(UPDATE_INTERVAL); |
282 | 291 |
</script> |
Also available in: Unified diff