Traffic message are now given as HTML
This commit is contained in:
parent
687eeed344
commit
350561b12f
2
app.js
2
app.js
@ -83,7 +83,7 @@ function getTraffic(type, code) {
|
||||
|
||||
$.getJSON( BASE_API + "/traffic/" + type + "/" + code, function( data ) {
|
||||
$("#traffic h3").text(data["result"]["line"] + " : " + data["result"]["title"]);
|
||||
$("#traffic p").text(data["result"]["message"]);
|
||||
$("#traffic p").html(data["result"]["message"]);
|
||||
$("#traffic").show();
|
||||
|
||||
nextTraffic = setTimeout(function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user