From adb581431fa33f970bbf5f3d2ac014fb30d17a7c Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 24 Nov 2016 12:35:28 +0100 Subject: [PATCH 1/2] set focus on input field Signed-off-by: Bjoern Schiessle --- core/js/js.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/js/js.js b/core/js/js.js index 41041a4288..714529fe5d 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1579,6 +1579,7 @@ OC.PasswordConfirmation = { } }, error: function() { + OC.PasswordConfirmation.requirePasswordConfirmation(self.callback); OC.Notification.showTemporary(t('core', 'Failed to authenticate, try again')); } }); From 936195259689afae77ff3ab3f03482dd55ee49d4 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 24 Nov 2016 12:35:59 +0100 Subject: [PATCH 2/2] show dialog again of operation failed Signed-off-by: Bjoern Schiessle --- core/js/oc-dialogs.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index fc0734e9df..3b5c1ae719 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -149,6 +149,7 @@ var OCdialogs = { modal : modal, buttons : buttonlist }); + input.focus(); OCdialogs.dialogsCounter++; }); },