server-side selected site option, no js needed
This commit is contained in:
@@ -64,10 +64,10 @@
|
||||
<input type="text" name="tags" id="tag-input" placeholder="e.g. swimsuit blonde_hair" value="{{ tag_query }}" />
|
||||
<button type="submit">Search</button>
|
||||
<select name="_site" id="site-select">
|
||||
<option value="e621">e621</option>
|
||||
<option value="konachan">konachan</option>
|
||||
<option value="yandere">yandere</option>
|
||||
<option value="rule34">rule34.xxx</option>
|
||||
<option value="e621" {% if selected_site == 'e621' %}selected{% endif %}>e621</option>
|
||||
<option value="konachan" {% if selected_site == 'konachan' %}selected{% endif %}>konachan</option>
|
||||
<option value="yandere" {% if selected_site == 'yandere' %}selected{% endif %}>yandere</option>
|
||||
<option value="rule34" {% if selected_site == 'rule34' %}selected{% endif %}>rule34.xxx</option>
|
||||
</select>
|
||||
<button type="button" id="get-btn">Get Images</button>
|
||||
</form>
|
||||
@@ -125,9 +125,6 @@
|
||||
form.submit();
|
||||
};
|
||||
|
||||
const _site_url = new URLSearchParams(window.location.search).get('_site');
|
||||
if (_site_url) document.getElementById('site-select').value = _site_url;
|
||||
|
||||
const job_id = new URLSearchParams(window.location.search).get('job_id');
|
||||
if (job_id) {
|
||||
const box = document.getElementById('progress-box');
|
||||
|
||||
Reference in New Issue
Block a user