|
|
@ -47,9 +47,12 @@ function request_textpreview_update() {
|
|
|
|
namespace: 'watchEdit'
|
|
|
|
namespace: 'watchEdit'
|
|
|
|
}).done(function (data) {
|
|
|
|
}).done(function (data) {
|
|
|
|
$('#filters-and-triggers #text-preview-inner').text(data);
|
|
|
|
$('#filters-and-triggers #text-preview-inner').text(data);
|
|
|
|
}).fail(function (data) {
|
|
|
|
}).fail(function (error) {
|
|
|
|
console.log(data);
|
|
|
|
if (error.statusText === 'abort') {
|
|
|
|
$('#filters-and-triggers #text-preview-inner').text('There was an error communicating with the server.');
|
|
|
|
console.log('Request was aborted due to a new request being fired.');
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$('#filters-and-triggers #text-preview-inner').text('There was an error communicating with the server.');
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|