Improve log display, use a <pre> so it can be easily cut and pasted.
This commit is contained in:
@@ -123,10 +123,11 @@ $(document).ready(function() {
|
||||
.done(function(data) {
|
||||
var this_el = $(".config-item[data-key='"+key+"']").find('.rest-field');
|
||||
if (this_el.hasClass('rest-field-boolean')) {
|
||||
this_el.prop('checked', data.Value);
|
||||
this_el.prop('checked', data.value);
|
||||
}
|
||||
else {
|
||||
this_el.val(data.Value);
|
||||
|
||||
this_el.val(data.value);
|
||||
}
|
||||
update_sadness();
|
||||
|
||||
@@ -142,7 +143,7 @@ $(document).ready(function() {
|
||||
}
|
||||
$.post('/rest/config/'+key, { value: val })
|
||||
.done(function(d) {
|
||||
if (d.Success) {
|
||||
if (d.success) {
|
||||
alert('Updated config');
|
||||
} else {
|
||||
alert("Error: " + d.Error);
|
||||
|
||||
Reference in New Issue
Block a user