Code Review
/
controller.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7c5788d
)
Fix Helper sorting issue
58/5058/1
author
Sapan Shah
<sapshah@cisco.com>
Fri, 31 Jan 2014 10:57:03 +0000
(
02:57
-0800)
committer
Sapan Shah
<sapshah@cisco.com>
Fri, 31 Jan 2014 10:57:03 +0000
(
02:57
-0800)
Fix sorting in tables, for undefined values
Change-Id: Id9c09aa9b9de93f07c4063e21e6dac578d13913f
Signed-off-by: Sapan Shah <sapshah@cisco.com>
opendaylight/web/root/src/main/resources/js/lib.js
patch
|
blob
|
history
diff --git
a/opendaylight/web/root/src/main/resources/js/lib.js
b/opendaylight/web/root/src/main/resources/js/lib.js
index 00eacdfce6b9eba6fed4b472a95f4a265748877b..c265760b97d28ff95210822e7bb0bf02293af925 100644
(file)
--- 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) : ''
}
}