kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Realtime UI - Delete watch should update in realtime ( #3255 )
rodzic
530bd40ca5
commit
66bc7fbc04
|
@ -98,6 +98,12 @@ $(document).ready(function () {
|
|||
console.log(`Stub handler for notification_event ${data.watch_uuid}`)
|
||||
});
|
||||
|
||||
socket.on('watch_deleted', function (data) {
|
||||
$('tr[data-watch-uuid="' + data.uuid + '"] td').fadeOut(500, function () {
|
||||
$(this).closest('tr').remove();
|
||||
});
|
||||
});
|
||||
|
||||
// Listen for periodically emitted watch data
|
||||
console.log('Adding watch_update event listener');
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue