hiding overlay is more reliable

pull/3/head
Marek Baczynski 6 years ago
parent 44adb43466
commit a99a356985

@ -1,18 +1,18 @@
var rootURL = '/parts/' var rootURL = '/parts/'
function overlay_in() { function overlay_in() {
$('.shadow').css({'display' : 'block'}); $('.shadow').show();
$('.overlay').css({'display' : 'block'}); $('.overlay').show();
$('.shadow').animate({'opacity' : 0.7}); $('.shadow').animate({'opacity' : 0.7});
$('.overlay').animate({'opacity' : 1.0, 'top' : '5%'}); $('.overlay').animate({'opacity' : 1.0, 'top' : '5%'});
} }
function overlay_out() { function overlay_out() {
$('.shadow').animate({'opacity' : 0.0}, function () { $('.shadow').animate({'opacity' : 0.0}, function () {
$('.overlay').css({'display' : 'none'}); $('.shadow').hide();
}); });
$('.overlay').animate({'opacity' : 0.0, 'top' : '0'}, function () { $('.overlay').animate({'opacity' : 0.0, 'top' : '0'}, function () {
$('.shadow').css({'display' : 'none'}); $('.overlay').hide();
}); });
end_edit(); end_edit();
} }
Loading…
Cancel
Save