Fix error with timezone charts for SCM panels

Change-Id: If662ba3743ec03129b8aaa7bc04e0a58736f1a60
This commit is contained in:
Luis Cañas Díaz 2015-04-13 14:06:18 +02:00
parent 8b100eb15b
commit 41572bb145
1 changed files with 9 additions and 1 deletions

View File

@ -49,8 +49,16 @@ var Timezones = {};
};
function loadTimeZonesData (ds_name, cb) {
var json_file,
release_name;
suffix = ds_name.toLowerCase();
var json_file = "data/json/" + suffix + "-timezone.json";
//var json_file = "data/json/" + suffix + "-timezone.json";
if (Utils.isReleasePage() === true){
release_name = $.urlParam('release');
json_file = "data/json/" + release_name + '/' + suffix + "-timezone.json";
}else{
json_file = "data/json/" + suffix + "-timezone.json";
}
$.when($.getJSON(json_file)
).done(function(json_data) {
data_tz = json_data;