Fix refreshing of the checks page filtered by tags. Fixes #221

This commit is contained in:
Pēteris Caune 2019-02-15 21:24:05 +02:00
parent 5cbd99cb5c
commit 63b15d74a5
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
3 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,9 @@ All notable changes to this project will be documented in this file.
### Improvements ### Improvements
- Add the "desc" field (check's description) to API responses - Add the "desc" field (check's description) to API responses
### Bug Fixes
- Fix refreshing of the checks page filtered by tags (#221)
## 1.5.0 - 2019-02-04 ## 1.5.0 - 2019-02-04

View File

@ -79,7 +79,7 @@ $(function () {
// Update hash // Update hash
if (window.history && window.history.replaceState) { if (window.history && window.history.replaceState) {
var url = "/checks/"; var url = $("#checks-table").data("list-url");;
if (qs.length) { if (qs.length) {
url += "?" + $.param(qs); url += "?" + $.param(qs);
} }

View File

@ -2,6 +2,7 @@
<table <table
id="checks-table" id="checks-table"
class="table" class="table"
data-list-url="{% url 'hc-checks' project.code %}"
data-status-url="{% url 'hc-status' project.code %}"> data-status-url="{% url 'hc-status' project.code %}">
<tr> <tr>
<th></th> <th></th>