misc: abort /live js handling if response was error (#74260) #96
|
@ -482,6 +482,10 @@ $(function() {
|
|||
data: new_data,
|
||||
headers: {'accept': 'application/json'},
|
||||
success: function(json) {
|
||||
if (json.result === "error") {
|
||||
console.log('error in /live request: ' + json.reason);
|
||||
return;
|
||||
}
|
||||
$.each(json.result, function(key, value) {
|
||||
if (value.block_id && value.block_row) {
|
||||
var $widget = $('[data-field-id="' + value.block_id + '"] [data-block-row="' + value.block_row + '"] [data-field-id="' + value.field_id + '"]');
|
||||
|
|
Loading…
Reference in New Issue