~fginther/ubuntu-weather-app/cmake-plus-weather-channel-2

« back to all changes in this revision

Viewing changes to components/TabFooter.qml

  • Committer: Martin Borho
  • Date: 2014-01-23 19:41:24 UTC
  • Revision ID: martin@borho.net-20140123194124-77ko1ecct734rzi1
fix for TWC links

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
        } else if(loc_name === "en_US" || loc_name === "en-CA") {
41
41
            url += "www.weather.com/";
42
 
            if(type) url += ((type === "10day") ? "tenday/" : "hourbyhour/graph/");
 
42
            if(type) url += "weather/"+((type === "10day") ? "tenday/" : "hourbyhour/graph/");
43
43
 
44
44
        } else if(loc_name.search(/^en_/) > -1) {
45
45
            url += "uk.weather.com/";
46
 
            if(type) url += ((type === "10day") ? "10day-" : "hourByHour-");
 
46
            if(type) url += "weather/"+((type === "10day") ? "10day-" : "hourByHour-");
47
47
 
48
48
        } else if(loc_name.search(/^fr_/) > -1) {
49
49
            url += "fr.weather.com/";
51
51
 
52
52
        } else if(loc_name.search(/^es_/) > -1) {
53
53
            url += "espanol.weather.com/";
54
 
            if(type) url += ((type === "10day") ? "10day-" : "hourByHour-");
 
54
            if(type) url += "weather/"+((type === "10day") ? "10day-" : "hourByHour-");
55
55
 
56
56
        } else if(loc_name === "ja_JP") {
57
57
            url += "ja.weather.com/";