updates
[webos-internals:djcin7s-modifications.git] / other / other-fahrenheit-temperature-in-device-info.patch
1 diff --git a/usr/palm/applications/com.palm.app.deviceinfo/app/controllers/list-assistant.js b/usr/palm/applications/com.palm.app.deviceinfo/app/controllers/list-assistant.js
2 index 800b90e..216a266 100644
3 --- a/usr/palm/applications/com.palm.app.deviceinfo/app/controllers/list-assistant.js
4 +++ b/usr/palm/applications/com.palm.app.deviceinfo/app/controllers/list-assistant.js
5 @@ -139,6 +139,9 @@ var ListAssistant = Class.create({
6                 if ("percent_ui" in response) {
7                         this.fields.battery = Mojo.Format.formatPercent(response["percent_ui"]);
8                 }
9 +               if("temperature_C" in response) {
10 +                       this.fields.temperature = Math.round((response["temperature_C"]*(9/5)) + 32) + "°F";
11 +               }
12                 this.updateFields(this.softwareItems, this.softwareModel);
13         },
14           
15 @@ -437,6 +440,9 @@ var ListAssistant = Class.create({
16          title: $L("Battery"),
17          field: "battery"
18      },{
19 +        title: "Temperature",
20 +        field: "temperature"
21 +    },{
22          title: $L("Memory"),
23          field: "totalMem"
24      },{