mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: add hint
This commit is contained in:
1 parent
a3c729cebd
commit
d85eee02bf
9 files changed
+39
-21
No files matched your search
@@ -7,10 +7,7 @@ export default new NamedPage(['problem_create', 'problem_edit', 'problem_import_
|
||||
$('input[name="pid"]').on('blur', () => {
|
||||
if (/^[0-9]+$/.test($('input[name="pid"]').val())) {
|
||||
new InfoDialog({
|
||||
$body: tpl`
|
||||
<div class="typo">
|
||||
<p>${i18n('Problem ID cannot be a pure number. Leave blank if you want to use numberic id.')}</p>
|
||||
</div>`,
|
||||
$body: tpl.typoMsg(i18n('Problem ID cannot be a pure number. Leave blank if you want to use numberic id.')),
|
||||
}).open();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user