Skip to content
Snippets Groups Projects
Commit fee8486b authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #19536 from owncloud/share-focusonsharefield

Focus on share field after first display
parents 8bdffb5e 1562da36
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment