]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/Parser.js
ui: make parsePropertyString less picky
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 4 Oct 2019 14:07:49 +0000 (16:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 4 Oct 2019 14:20:24 +0000 (16:20 +0200)
commit4a7248d4ea934fa9adf13145c930f39246eb6b52
tree111c64dcb24a063153d4f7b00234c87f631e0551
parenta19aa238198bed8528794880710fae197fd8182d
ui: make parsePropertyString less picky

simply return a empty object for cases we would get an exception
anyway, this is not wrong and allows easier usage for cases where
it's not sure if the value is set or not.

We could still do a Ext.isDebugEnabled() check and then throw up, but
this really should not matter much and I do not like if my debug mode
breaks and the non-debug not..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/Parser.js