Merge pull request #367 from ChrisBr/fix_js_error

Enables poltergeist and fixes js error on dashboard
This commit is contained in:
Christian Bruckmayer 2014-07-23 16:16:56 +02:00
commit 3e5a089eb1
2 changed files with 5 additions and 5 deletions

View file

@ -78,7 +78,11 @@ $(function() {
var options = {};
options.fillColor = "rgba(255,255,255,0.0)";
options.strokeColor = conferences[i].color;
options.data = chart_data[conferences[i].short_title];
if(options.data == null || options.data.length == 0){
options.data = [0];
}else{
options.data = chart_data[conferences[i].short_title];
}
result.push(options)
}
}