Remove auto-focus on certain input fields

* remove autofocus on input certain input fields if browser is msie
* Update sharedialoglinkshareview.js
* Update sharedialogview.js

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Felix Heidecke 2017-02-15 13:50:53 +01:00 committed by Morris Jobke
parent 49d0507f5d
commit a9dc3239b3
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
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();
});
}
}
},