commit
ef3bc98572
|
@ -693,13 +693,12 @@ define([
|
|||
mask.attr('counter', parseInt(mask.attr('counter'))+1);
|
||||
mask.show();
|
||||
} else {
|
||||
var opacity = mask.css('opacity');
|
||||
mask.css('opacity', 0);
|
||||
mask.attr('counter', parseInt(mask.attr('counter'))+1);
|
||||
mask.show();
|
||||
|
||||
setTimeout(function () {
|
||||
mask.css(_getTransformation(opacity));
|
||||
mask.css(_getTransformation('0.2'));
|
||||
}, 1);
|
||||
}
|
||||
|
||||
|
@ -785,12 +784,11 @@ define([
|
|||
|
||||
if ( hide_mask ) {
|
||||
if (this.options.animate !== false) {
|
||||
var opacity = mask.css('opacity');
|
||||
mask.css(_getTransformation(0));
|
||||
|
||||
setTimeout(function () {
|
||||
mask.css('opacity', opacity);
|
||||
if (parseInt(mask.attr('counter'))<1) {
|
||||
mask.css('opacity', '0.2');
|
||||
mask.hide();
|
||||
mask.attr('counter', 0);
|
||||
}
|
||||
|
@ -803,7 +801,7 @@ define([
|
|||
}
|
||||
}
|
||||
|
||||
Common.NotificationCenter.trigger('modal:close', this, hide_mask);
|
||||
Common.NotificationCenter.trigger('modal:close', this, hide_mask && (parseInt(mask.attr('counter'))<1));
|
||||
}
|
||||
|
||||
this.$window.remove();
|
||||
|
@ -826,12 +824,11 @@ define([
|
|||
|
||||
if ( hide_mask ) {
|
||||
if (this.options.animate !== false) {
|
||||
var opacity = mask.css('opacity');
|
||||
mask.css(_getTransformation(0));
|
||||
|
||||
setTimeout(function () {
|
||||
mask.css('opacity', opacity);
|
||||
if (parseInt(mask.attr('counter'))<1) {
|
||||
mask.css('opacity', '0.2');
|
||||
mask.hide();
|
||||
mask.attr('counter', 0);
|
||||
}
|
||||
|
@ -843,7 +840,7 @@ define([
|
|||
}
|
||||
}
|
||||
}
|
||||
Common.NotificationCenter.trigger('modal:hide', this, hide_mask);
|
||||
Common.NotificationCenter.trigger('modal:hide', this, hide_mask && (parseInt(mask.attr('counter'))<1));
|
||||
}
|
||||
this.$window.hide();
|
||||
this.$window.removeClass('notransform');
|
||||
|
|
Loading…
Reference in a new issue