Revision f0ac40a4 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
427 | 427 |
}); |
428 | 428 |
|
429 | 429 |
// temp function used to demonstrate the visual effect of the building state of vm |
430 |
$('.btn5.temp').click(function(e) { |
|
430 |
$('[data-status="building"] .btn5.temp').click(function(e) {
|
|
431 | 431 |
e.preventDefault(); |
432 | 432 |
$(this).siblings('.container').find('.complete').toggleClass('build-progress'); |
433 |
}); |
|
434 |
|
|
435 |
$('[data-status="rebooting"] .btn5.temp').click(function(e) { |
|
436 |
e.preventDefault(); |
|
437 |
$(this).siblings('.container').find('.snf-PC_fill').toggleClass('reboot-progress'); |
|
433 | 438 |
}) |
434 | 439 |
|
435 | 440 |
//temp function to preventDefault of links in modal |
Also available in: Unified diff