summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogview.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index ee31ed33132..7b02e6a3a50 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() {