diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index ee31ed3313226933485d5e44b55567635a54e872..7b02e6a3a5091c9d8d8b9d23152af6570ec37bb7 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -174,12 +174,19 @@ // only show the loading spinner for the first request (for now) if (!this._loadingOnce) { this._toggleLoading(true); - this._loadingOnce = true; } }, _onEndRequest: function() { + var self = this; this._toggleLoading(false); + if (!this._loadingOnce) { + this._loadingOnce = true; + // the first time, focus on the share field after the spinner disappeared + _.defer(function() { + self.$('#shareWith').focus(); + }); + } }, render: function() {