From a9dc3239b3ec67ccdf4e01361d69358cb1415669 Mon Sep 17 00:00:00 2001 From: Felix Heidecke Date: Wed, 15 Feb 2017 13:50:53 +0100 Subject: [PATCH] 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 --- core/js/sharedialoglinkshareview.js | 4 +++- core/js/sharedialogview.js | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index e7bea516be..7e3ce923ef 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -259,7 +259,9 @@ password: '' }); } else { - this.$el.find('.linkPassText').focus(); + if (!OC.Util.isIE()) { + this.$el.find('.linkPassText').focus(); + } } }, diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 4747195556..16a2be0c4a 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -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(); + }); + } } },