Skip to content

Commit b1a4010

Browse files
committed
Fixed bug parsing IDs in notification messages in the Horizon app
1 parent f863df1 commit b1a4010

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/javascript/app/Horizon.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ javaxt.express.app.Horizon = function(parent, config) {
295295

296296

297297
//Parse id as needed
298-
if (id.indexOf("_")===-1 && id.indexOf("-")===-1){
298+
var n = id+"";
299+
var isNumber = !isNaN(parseFloat(n)) && !isNaN(n - 0);
300+
if (isNumber){
299301
try {
300302
var i = parseInt(id);
301303
if (!isNaN(i)) id = i;

0 commit comments

Comments
 (0)