Skip to content

Commit ddb9514

Browse files
committed
Fix getSetting method in javascript.
Broken by JSONSerializer changes committed in 272b24d.
1 parent 07abfa6 commit ddb9514

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mythtv/html/js/util.qjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function getSetting(hostname, key, defValue) {
1919
$.getJSON("/Myth/GetSetting",
2020
{ HostName: hostname, Key: key, Default: defValue },
2121
function(data) {
22-
result = data.SettingList.Settings[0].Value;
22+
result = data.SettingList.Settings[key];
2323
}).error(function(data) {
2424
setErrorMessage("<i18n>Unable to retrieve setting.</i18n>");
2525
});

mythtv/html/samples/js/samples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function GetSettingValue()
1515
$("#debug").html( inspect( data , 10 ) );
1616

1717

18-
$("#SettingValue").val( data.SettingList.Settings[0].Value );
18+
$("#SettingValue").val( data.SettingList.Settings[sKey] );
1919
});
2020
}
2121

0 commit comments

Comments
 (0)