Revision bb8cc1dc snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
197 | 197 |
} |
198 | 198 |
var id = el.data('overlay-id'); |
199 | 199 |
|
200 |
$('.overlay-area').fadeIn('slow'); |
|
200 |
$('.overlay-area').fadeIn(100); |
|
201 |
$('body').addClass('with-overlay'); |
|
201 | 202 |
$(id).fadeIn('slow'); |
202 |
if ($('.step-1').length>0) { |
|
203 |
ui.wizard.setStepHeight($('.step-1')); |
|
204 |
} |
|
205 | 203 |
$(id).find('a').first().focus(); |
206 | 204 |
}); |
207 | 205 |
} |
... | ... | |
271 | 269 |
|
272 | 270 |
ui.entitiesActionsInit(); |
273 | 271 |
|
274 |
if ($('.overlay').length >0 ){ |
|
275 |
$('body').addClass('with-overlay'); |
|
276 |
} |
|
277 |
|
|
278 | 272 |
$('.new-btn a.current').click(function(e){ |
279 | 273 |
e.preventDefault(); |
280 | 274 |
}) |
... | ... | |
301 | 295 |
e.stopPropagation(); |
302 | 296 |
$(this).parents('.overlay-area').hide(); |
303 | 297 |
$(this).parents('.overlay-area').find($('.overlay-div')).hide(); |
298 |
$('body').removeClass('with-overlay'); |
|
304 | 299 |
}) |
305 | 300 |
|
306 | 301 |
$('.browse-files').click(function(e){ |
... | ... | |
327 | 322 |
preload: [0,1] // Will preload 0 - before current, and 1 after the current image |
328 | 323 |
}, |
329 | 324 |
image: { |
330 |
tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
|
|
325 |
tError: 'The image could not be loaded.',
|
|
331 | 326 |
titleSrc: function(item) { |
332 | 327 |
return item.el.data('title'); |
333 | 328 |
} |
Also available in: Unified diff