diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-02 17:50:04 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-02 17:50:04 +0200 |
commit | fee8486b7f50422958909abe9fa1305039ecbbab (patch) | |
tree | 57370c5f7d48b1eb545d11f7232bf5d30a27b817 /core | |
parent | 8bdffb5ed3d45e026b47e62fc8e07dfd107553e0 (diff) | |
parent | 1562da3691e69e5872a32e0582b3316aa3e16991 (diff) | |
download | nextcloud-server-fee8486b7f50422958909abe9fa1305039ecbbab.tar.gz nextcloud-server-fee8486b7f50422958909abe9fa1305039ecbbab.zip |
Merge pull request #19536 from owncloud/share-focusonsharefield
Focus on share field after first display
Diffstat (limited to 'core')
-rw-r--r-- | core/js/sharedialogview.js | 9 |
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() { |