mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: record_main: allow using nopush to disable live event feed (#730)
This commit is contained in:
1 parent
7ea3c91f5f
commit
846a394e54
1 file changed
+2
-1
@@ -24,7 +24,8 @@ const page = new NamedPage('record_main', async () => {
|
||||
dd.apply($oldTr[0], dd.diff($oldTr[0], $newTr[0]));
|
||||
$oldTr.trigger('vjContentNew');
|
||||
} else {
|
||||
if (+new URLSearchParams(window.location.search).get('page') > 1) return;
|
||||
if (+new URLSearchParams(window.location.search).get('page') > 1
|
||||
|| new URLSearchParams(window.location.search).get('nopush')) return;
|
||||
$('.record_main__table tbody').prepend($newTr);
|
||||
$('.record_main__table tbody tr:last').remove();
|
||||
$newTr.trigger('vjContentNew');
|
||||
|
||||
Reference in new issue
Block a user