app/assets/javascripts/kea/overlay/overlay_control.js in kea-rails-2.0.0.pre.alpha7 vs app/assets/javascripts/kea/overlay/overlay_control.js in kea-rails-2.0.0.pre.alpha8
- old
+ new
@@ -71,10 +71,19 @@
that.runCallbacks('beforeShow');
that.veil.show();
};
this.hide = function hide() {
+ // that.runCallbacks('beforeClose');
+ // that.veil.hide();
+ that.hideAndRemove();
+ };
+
+ this.hideAndRemove = function hideAndRemove() {
that.runCallbacks('beforeClose');
+ that.veil.addCallback('afterHide', function() {
+ that.veil.destroy();
+ });
that.veil.hide();
};
};
\ No newline at end of file