Improved www.ttss.krakow.pl
Jacek Kowalski
2017-03-15 09944ede7f06b201537f2051c276a6f1917fc15c
Fix for alerts being displayed as "[object Object]"
1 files modified
4 ■■■■ changed files
index.js 4 ●●●● patch | view | raw | blame | history
index.js
@@ -296,7 +296,7 @@
        */
        
        for(var i = 0, il = data.generalAlerts.length; i < il; i++) {
            addParaWithText(times_alerts, data.generalAlerts[i]);
            addParaWithText(times_alerts, data.generalAlerts[i].title);
        }
        
        for(var i = 0, il = data.old.length; i < il; i++) {
@@ -375,7 +375,7 @@
                    times_alerts,
                    lang.line_alert_pattern
                        .replace('$line', data.routes[i].name)
                        .replace('$alert', data.routes[i].alerts[j])
                        .replace('$alert', data.routes[i].alerts[j].title)
                );
            }
        }