]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: lxc: code cleanup ssh key upload
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 22 Nov 2020 09:22:10 +0000 (10:22 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 22 Nov 2020 09:22:10 +0000 (10:22 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/lxc/CreateWizard.js

index 87076e0df4ccc827dfe4d030acd56ed11ad29f95..781fc251c565f4a562e62c77dcbe1d63094088ad 100644 (file)
@@ -140,10 +140,8 @@ Ext.define('PVE.lxc.CreateWizard', {
                            if (ev.preventDefault) {
                                ev.preventDefault();
                            }
-                           var files = ev.dataTransfer.files;
-                           PVE.Utils.loadSSHKeyFromFile(files[0], function(v) {
-                               field.setValue(v);
-                           });
+                           let files = ev.dataTransfer.files;
+                           PVE.Utils.loadSSHKeyFromFile(files[0], v => field.setValue(v));
                        });
                    }
                },