]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove auto-focus on certain input fields 4022/head
authorFelix Heidecke <felixheidecke@users.noreply.github.com>
Wed, 15 Feb 2017 12:50:53 +0000 (13:50 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 23 Mar 2017 23:34:50 +0000 (17:34 -0600)
* 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>
core/js/sharedialoglinkshareview.js
core/js/sharedialogview.js

index e7bea516be03ddbe220772ce39c3e27bf92c83f0..7e3ce923ef94bca33fed6a59f4a2285516c36c63 100644 (file)
                                        password: ''
                                });
                        } else {
-                               this.$el.find('.linkPassText').focus();
+                               if (!OC.Util.isIE()) {
+                                       this.$el.find('.linkPassText').focus();
+                               }
                        }
                },
 
index 47471955563482f9ef39d1f26fcbde1d9d13ddb5..16a2be0c4a936e1ba37231a7089ba5aabb77f5db 100644 (file)
                        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();
+                                       });
+                               }
                        }
                },