Browse Source

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

pull/194/head
Pēteris Caune 6 years ago
parent
commit
63b15d74a5
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
3 changed files with 5 additions and 1 deletions
  1. +3
    -0
      CHANGELOG.md
  2. +1
    -1
      static/js/checks.js
  3. +1
    -0
      templates/front/my_checks_desktop.html

+ 3
- 0
CHANGELOG.md 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


+ 1
- 1
static/js/checks.js 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);
} }


+ 1
- 0
templates/front/my_checks_desktop.html 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>


Loading…
Cancel
Save