mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: disable transistion on record_main
This commit is contained in:
1 file changed
-2
@@ -20,7 +20,6 @@ const page = new NamedPage('record_main', async () => {
|
|||||||
sock.onmessage = (_, data) => {
|
sock.onmessage = (_, data) => {
|
||||||
const msg = JSON.parse(data);
|
const msg = JSON.parse(data);
|
||||||
const $newTr = $(msg.html);
|
const $newTr = $(msg.html);
|
||||||
withTransitionCallback(() => {
|
|
||||||
const $oldTr = $(`.record_main__table tr[data-rid="${$newTr.attr('data-rid')}"]`);
|
const $oldTr = $(`.record_main__table tr[data-rid="${$newTr.attr('data-rid')}"]`);
|
||||||
if ($oldTr.length) {
|
if ($oldTr.length) {
|
||||||
$oldTr.trigger('vjContentRemove');
|
$oldTr.trigger('vjContentRemove');
|
||||||
@@ -33,7 +32,6 @@ const page = new NamedPage('record_main', async () => {
|
|||||||
$('.record_main__table tbody tr:last').remove();
|
$('.record_main__table tbody tr:last').remove();
|
||||||
$newTr.trigger('vjContentNew');
|
$newTr.trigger('vjContentNew');
|
||||||
}
|
}
|
||||||
});
|
|
||||||
};
|
};
|
||||||
UserSelectAutoComplete.getOrConstruct($('[name="uidOrName"]'), {
|
UserSelectAutoComplete.getOrConstruct($('[name="uidOrName"]'), {
|
||||||
clearDefaultValue: false,
|
clearDefaultValue: false,
|
||||||
|
|||||||
Reference in new issue
Block a user