]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - button/Button.js
explicit set button focus respecting the 'dangerous' option
[proxmox-widget-toolkit.git] / 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;