]> git.proxmox.com Git - pve-manager-legacy.git/commit
Fix SafeDestroy when entering a numeric resource ID
authorEmmanuel Kasper <e.kasper@proxmox.com>
Wed, 14 Jun 2017 09:22:20 +0000 (11:22 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 19 Jun 2017 07:23:55 +0000 (09:23 +0200)
commitfb955924867fcc2ebd96a4e46b48cf7033ea20cd
tree4c886b3c770c38117f4eff3fd2f09e110ab4fd8b
parentee26ef44522f4c8a766d597e259a945cc2986ec9
Fix SafeDestroy when entering a numeric resource ID

In a previous commit, the inputField of SafeDestroy.js was converted
from a numberfield to a textfield to allow ceph pools names to be
entered.
This means the type of 'value' changed from number to string and
the strong equal test === was failing against a numeric id.
To solve this, we now always stringify the resource id before comparing.
www/manager6/window/SafeDestroy.js