Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 07f3170

Browse files
committed
additional tweaks
1 parent aff1986 commit 07f3170

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

js/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ $(document).ajaxSend(function(e, jqXhr, settings) {
352352
});
353353

354354
launchOnboarding = function(guidCreating) {
355+
app.serverConnectModal.close();
355356
onboardingModal && onboardingModal.remove();
356357
onboardingModal = new OnboardingModal({
357358
model: user,
@@ -405,6 +406,7 @@ app.serverConnectModal.on('connected', (authenticated) => {
405406
app.getHeartbeatSocket().on('open', function(e) {
406407
app.getHeartbeatSocket().off('close', startUpRetry);
407408
pageConnectModal.remove();
409+
$loadingModal.removeClass('hide');
408410
onboardingModal && onboardingModal.remove();
409411

410412
// clear some flags so the heartbeat events will

js/views/serverConnectModal.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ module.exports = BaseModal.extend({
4242
},
4343

4444
remove: function() {
45-
$(document).off(null, this.onAjaxComplete);
4645
BaseModal.prototype.remove.apply(this, arguments);
4746
},
4847

@@ -244,7 +243,7 @@ module.exports = BaseModal.extend({
244243
// check authentication
245244
loginRequest = app.login().done(function(data) {
246245
if (data.success) {
247-
conclude(data);
246+
conclude(false, data);
248247
self.trigger('connected', true);
249248
} else {
250249
if (data.reason === 'too many attempts') {
@@ -260,7 +259,6 @@ module.exports = BaseModal.extend({
260259

261260
// assuming rest server is down or
262261
// wrong port set
263-
// rejectLogin();
264262
conclude(true);
265263
});
266264
};

0 commit comments

Comments
 (0)