Revision 208dd6d1 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
250 | 250 |
|
251 | 251 |
$(document).ready(function(){ |
252 | 252 |
|
253 |
ui.inactiveActions(); |
|
253 |
if($('.vms.entities').length!=0){ |
|
254 |
ui.inactiveActions(); |
|
255 |
}; |
|
254 | 256 |
ui.setSidebarHeight(); |
255 | 257 |
$('#hd-search .hd-icon-search').click(function(e){ |
256 | 258 |
var that = this; |
... | ... | |
469 | 471 |
}) |
470 | 472 |
|
471 | 473 |
//temp function to preventDefault of links in modal |
472 |
$('.reveal-modal a:not(".close-reveal-modal")').click(function(e){
|
|
474 |
$('.reveal-modal a:not(".close-reveal-modal, .generate-key-btn, .import-key-btn")').click(function(e){
|
|
473 | 475 |
e.preventDefault(); |
474 | 476 |
$('a.close-reveal-modal').trigger('click'); |
475 | 477 |
}); |
Also available in: Unified diff