]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
explicit set button focus respecting the 'dangerous' option
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 4 Jan 2018 10:28:58 +0000 (11:28 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Thu, 11 Jan 2018 13:48:13 +0000 (14:48 +0100)
port commit
4dc6bd326a829d5bf708c4a33722d5a8c6304f9c
from pve-manager

button/Button.js

index e02ea8d061dd673c3d82cc179924052b49746c19..0d65d57f52846f1b19205dd2186431c24f9f8b3e 100644 (file)
@@ -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;