Revision 8e94f2a9 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
475 | 475 |
e.preventDefault(); |
476 | 476 |
$('a.close-reveal-modal').trigger('click'); |
477 | 477 |
}); |
478 |
|
|
479 |
// temp btn to show communication error message |
|
480 |
$('.temp-for-btns .communication-error-btn').click(function(e) { |
|
481 |
e.preventDefault(); |
|
482 |
e.stopPropagation(); |
|
483 |
console.log('hi'); |
|
484 |
$('.communication-error').animate({bottom: "30px"}); |
|
485 |
}); |
|
486 |
|
|
487 |
$('.communication-error a').click(function(e) { |
|
488 |
e.preventDefault(); |
|
489 |
e.stopPropagation(); |
|
490 |
$('.communication-error').animate({bottom: "-150px"}); |
|
491 |
}); |
|
492 |
|
|
493 |
// $('body *:not(".communication-error, .communication-error *:not(a), .communication-error-btn")').click(function(e) { |
|
494 |
// e.stopPropagation(); |
|
495 |
// console.log('t') |
|
496 |
// if($('.communication-error').css('bottom') == "30px") { |
|
497 |
// $('.communication-error').animate({bottom: "-150px"}); |
|
498 |
// }; |
|
499 |
// }) |
|
478 | 500 |
}) |
479 | 501 |
|
480 | 502 |
|
Also available in: Unified diff