Commit 81493a9f authored by echel0n's avatar echel0n
Browse files

Fixed issue with schedule view and sorting

Fixed issue with schedule view and layouts
Fixed issue with history view and layouts
parent b4164b1b
......@@ -33,9 +33,9 @@
</select>
<select name="HistoryLayout" class="form-control"
onchange="location = `${srWebRoot}/history?layout=this.options[this.selectedIndex].value;`">
onchange="location = this.options[this.selectedIndex].value;">
% for item in HistoryLayout:
<option value="${item.name}" ${('', 'selected')[sickrage.app.config.gui.history_layout == item]}>${item.display_name}</option>
<option value="${srWebRoot}/setHistoryLayout/?layout=${item.name}" ${('', 'selected')[sickrage.app.config.gui.history_layout == item]}>${item.display_name}</option>
% endfor
</select>
</div>
......
......@@ -26,7 +26,7 @@
<select id="sortby" name="sort" class="form-control mr-1"
onchange="location = this.options[this.selectedIndex].value;">
% for item in ComingEpsSortBy:
<option value="${item.name}" ${('', 'selected')[sickrage.app.config.gui.coming_eps_sort == item]}>${item.display_name}</option>
<option value="${srWebRoot}/setScheduleSort/?sort=${item.name}" ${('', 'selected')[sickrage.app.config.gui.coming_eps_sort == item]}>${item.display_name}</option>
% endfor
</select>
% endif
......@@ -42,9 +42,9 @@
</select>
<select id="layout" name="layout" class="form-control mr-1"
onchange="location = `${srWebRoot}/schedule?layout=this.options[this.selectedIndex].value;`">
onchange="location = this.options[this.selectedIndex].value;">
% for item in ComingEpsLayout:
<option value="${item.name}" ${('', 'selected')[sickrage.app.config.gui.coming_eps_layout == item]}>${item.display_name}</option>
<option value="${srWebRoot}/setScheduleLayout/?layout=${item.name}" ${('', 'selected')[sickrage.app.config.gui.coming_eps_layout == item]}>${item.display_name}</option>
% endfor
</select>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment