render: function () { var view = this; this.$el.html(LoginDialogTemplate()).girderModal(this) .on('shown.bs.modal', function () { view.$('#g-login').focus(); }).on('hidden.bs.modal', function () { handleClose('login', {replace: true}); }); handleOpen('login', {replace: true}); this.$('#g-login').focus(); return this; }
render: function () { this.$el.html(LoginDialogTemplate({ registrationPolicy: this.registrationPolicy, enablePasswordLogin: this.enablePasswordLogin, showOtp: true })).girderModal(this) .on('shown.bs.modal', () => { this.$('#g-login').focus(); }).on('hidden.bs.modal', () => { handleClose('login', {replace: true}); }); handleOpen('login', {replace: true}); this.$('#g-login').focus(); return this; }