Skip to content
Snippets Groups Projects
Commit 1562da36 authored by Vincent Petry's avatar Vincent Petry
Browse files

Focus on share field after first display

parent af01c043
No related branches found
No related tags found
No related merge requests found
...@@ -174,12 +174,19 @@ ...@@ -174,12 +174,19 @@
// only show the loading spinner for the first request (for now) // only show the loading spinner for the first request (for now)
if (!this._loadingOnce) { if (!this._loadingOnce) {
this._toggleLoading(true); this._toggleLoading(true);
this._loadingOnce = true;
} }
}, },
_onEndRequest: function() { _onEndRequest: function() {
var self = this;
this._toggleLoading(false); 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() { render: function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment