Revision 6e73603a snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
166 | 166 |
$('[data-overlay-id]').click(function(e){ |
167 | 167 |
e.preventDefault(); |
168 | 168 |
var el = $(this); |
169 |
var id = el.data('overlay-id'); |
|
169 |
var id = '#'+el.data('overlay-id');
|
|
170 | 170 |
|
171 |
$('.overlay-area').fadeIn(100); |
|
171 |
$('.overlay-area-custom').fadeIn(100);
|
|
172 | 172 |
$('body').addClass('with-overlay'); |
173 | 173 |
$(id).fadeIn('slow'); |
174 | 174 |
if (id=='#network-wizard') { |
... | ... | |
332 | 332 |
e.preventDefault(); |
333 | 333 |
} |
334 | 334 |
}) |
335 |
$('.overlay-area').children('.close').click(function(e){ |
|
335 |
$('.overlay-area-custom').children('.close').click(function(e){
|
|
336 | 336 |
e.preventDefault(); |
337 | 337 |
e.stopPropagation(); |
338 |
$(this).parents('.overlay-area').hide(); |
|
339 |
$(this).parents('.overlay-area').find($('.overlay-div')).hide(); |
|
338 |
console.log('blah') |
|
339 |
$(this).parents('.overlay-area-custom').hide(); |
|
340 |
$(this).parents('.overlay-area-custom').find($('.overlay-div')).hide(); |
|
340 | 341 |
$('body').removeClass('with-overlay'); |
341 | 342 |
}) |
342 | 343 |
|
Also available in: Unified diff