mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core&ui: record_detail: fix filterLang=waiting
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -77,7 +77,7 @@ class RecordListHandler extends ContestDetailBaseHandler {
|
||||
else invalid = true;
|
||||
}
|
||||
if (lang) q.lang = lang;
|
||||
if (status) q.status = status;
|
||||
if (typeof status === 'number') q.status = status;
|
||||
if (all) {
|
||||
this.checkPriv(PRIV.PRIV_MANAGE_ALL_DOMAIN);
|
||||
delete q.contest;
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
{{ _('By Status') }}
|
||||
</label>
|
||||
<select class="compact select" name="status">
|
||||
<option value="" {% if not filterStatus %}selected{% else %}{% endif %}>{{ _('All Submissions') }}</option>
|
||||
<option value="" {% if typeof(filterStatus) != 'number' %}selected{% else %}{% endif %}>{{ _('All Submissions') }}</option>
|
||||
{%- for k,v in utils.status.STATUS_TEXTS -%}
|
||||
<option value="{{k}}" {% if filterStatus == k %}selected{% else %}{% endif %}>{{v}}</option>
|
||||
{%- endfor -%}
|
||||
|
||||
Reference in new issue
Block a user