X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fweb%2Froot%2Fsrc%2Fmain%2Fresources%2Fjs%2Flib.js;h=c265760b97d28ff95210822e7bb0bf02293af925;hb=3a117f105f127bb255dd44f3cdde28e45d4d389a;hp=00eacdfce6b9eba6fed4b472a95f4a265748877b;hpb=619f87d7ff5b11898aa1571d5fad7c9468753ecd;p=controller.git diff --git a/opendaylight/web/root/src/main/resources/js/lib.js b/opendaylight/web/root/src/main/resources/js/lib.js index 00eacdfce6..c265760b97 100644 --- a/opendaylight/web/root/src/main/resources/js/lib.js +++ b/opendaylight/web/root/src/main/resources/js/lib.js @@ -373,11 +373,11 @@ one.lib.nav = { one.lib.helper = { parseInt : function(value) { - return (value !== null && value !== '') ? + return (value != null && value.trim() !== '') ? parseInt(value) : '' }, parseFloat : function(value) { - return (value !== null && value !== '') ? + return (value != null && value.trim() !== '') ? parseFloat(value) : '' } }