mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: update translation
This commit is contained in:
1 parent
32b1b7b766
commit
be30945487
8 files changed
+35
-35
No files matched your search
@@ -23,12 +23,12 @@ const page = new NamedPage(['contest_edit', 'contest_create', 'homework_create',
|
||||
const endAt = moment(`${beginAtDate} ${beginAtTime}`).add(+duration, 'hours').toDate();
|
||||
if (endAt) $('[name="endAt"]').val(moment(endAt).format('YYYY-MM-DD HH:mm'));
|
||||
});
|
||||
$('[name="authorize"]').removeAttr('disabled').on('change', () => {
|
||||
const authorized = $('[name="authorize"]').val();
|
||||
$('.authorize-settings input').attr('disabled', 'disabled');
|
||||
$('.authorize-settings').hide();
|
||||
$(`.authorize--${authorized} input`).removeAttr('disabled');
|
||||
$(`.authorize--${authorized}`).show();
|
||||
$('[name="permission"]').removeAttr('disabled').on('change', () => {
|
||||
const type = $('[name="permission"]').val();
|
||||
$('[data-perm] input').attr('disabled', 'disabled');
|
||||
$('[data-perm]').hide();
|
||||
$(`[data-perm="${type}"] input`).removeAttr('disabled');
|
||||
$(`[data-perm="${type}"]`).show();
|
||||
}).trigger('change');
|
||||
if (pagename.endsWith('edit')) {
|
||||
let confirmed = false;
|
||||
|
||||
@@ -30,8 +30,8 @@ const page = new NamedPage('contest_scoreboard', () => {
|
||||
$('.data-table tbody tr').hide();
|
||||
read().forEach((uid) => $(`.star.user--${uid}`).closest('tr').show());
|
||||
} else {
|
||||
$('.data-table tbody tr').hide();
|
||||
$('.rank--unrank').closest('tr').show();
|
||||
$('.data-table tbody tr').show();
|
||||
$('.rank--unrank').closest('tr').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user