mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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;
|
else invalid = true;
|
||||||
}
|
}
|
||||||
if (lang) q.lang = lang;
|
if (lang) q.lang = lang;
|
||||||
if (status) q.status = status;
|
if (typeof status === 'number') q.status = status;
|
||||||
if (all) {
|
if (all) {
|
||||||
this.checkPriv(PRIV.PRIV_MANAGE_ALL_DOMAIN);
|
this.checkPriv(PRIV.PRIV_MANAGE_ALL_DOMAIN);
|
||||||
delete q.contest;
|
delete q.contest;
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
{{ _('By Status') }}
|
{{ _('By Status') }}
|
||||||
</label>
|
</label>
|
||||||
<select class="compact select" name="status">
|
<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 -%}
|
{%- for k,v in utils.status.STATUS_TEXTS -%}
|
||||||
<option value="{{k}}" {% if filterStatus == k %}selected{% else %}{% endif %}>{{v}}</option>
|
<option value="{{k}}" {% if filterStatus == k %}selected{% else %}{% endif %}>{{v}}</option>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|||||||
Reference in new issue
Block a user