in themes/kube/static/js/kube.js [1961:1989]
open: function(e)
{
if (e) e.preventDefault();
if (this.isOpened())
{
return;
}
if (this.detect.isMobile()) this.opts.width = '96%';
if (this.opts.overlay) this.$overlay.removeClass('hide');
this.$target.removeClass('hide');
this.$modal.removeClass('hide');
this.enableEvents();
this.findActions();
this.resize();
$(window).on('resize.' + this.namespace, $.proxy(this.resize, this));
if (this.detect.isDesktop()) this.utils.disableBodyScroll();
// enter
this.$modal.find('input[type=text],input[type=url],input[type=email]').on('keydown.' + this.namespace, $.proxy(this.handleEnter, this));
this.callback('open');
this.$modal.animation(this.opts.animationOpen, $.proxy(this.onOpened, this));
},