[pve-devel] [PATCH widget-toolkit 07/15] explicit set button focus respecting the 'dangerous' option

Dominik Csapak d.csapak at proxmox.com
Mon Jan 15 15:17:40 CET 2018


port commit
4dc6bd326a829d5bf708c4a33722d5a8c6304f9c
from pve-manager

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 button/Button.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/button/Button.js b/button/Button.js
index e02ea8d..0d65d57 100644
--- a/button/Button.js
+++ b/button/Button.js
@@ -48,6 +48,7 @@ Ext.define('Proxmox.button.Button', {
 			icon: me.dangerous ? Ext.Msg.WARNING : Ext.Msg.QUESTION,
 			msg: msg,
 			buttons: Ext.Msg.YESNO,
+			defaultFocus: me.dangerous ? 'no' : 'yes',
 			callback: function(btn) {
 			    if (btn !== 'yes') {
 				return;
-- 
2.11.0





More information about the pve-devel mailing list