Merge pull request #4022 from nextcloud/downstream-27105

Remove auto-focus on certain input fields
This commit is contained in:
Roeland Jago Douma 2017-03-24 10:01:06 +01:00 committed by GitHub
commit df4d1f7b78
2 changed files with 8 additions and 4 deletions

View File

@ -259,7 +259,9 @@
password: ''
});
} else {
this.$el.find('.linkPassText').focus();
if (!OC.Util.isIE()) {
this.$el.find('.linkPassText').focus();
}
}
},

View File

@ -397,9 +397,11 @@
if (!this._loadingOnce) {
this._loadingOnce = true;
// the first time, focus on the share field after the spinner disappeared
_.defer(function() {
self.$('.shareWithField').focus();
});
if (!OC.Util.isIE()) {
_.defer(function () {
self.$('.shareWithField').focus();
});
}
}
},