TT#58584 Add ignore helper button to build tables

Change-Id: I1b017f7b7e0e2f45485fbe6d794c938cf6c69952
changes/29/29729/1
Robert Axelsen 7 years ago
parent ca4acb49fb
commit c0f84b2dff

@ -55,3 +55,10 @@ $( document ).ready(function() {
common_select.change();
}
});
function click_ignore(e) {
var selection_box_id = e.target.id.split('_')[1];
var selection_box = $('#version_' + selection_box_id);
selection_box.val('ignore');
e.preventDefault();
}

@ -55,7 +55,7 @@
{% for p in projects %}
<tr class="repo">
<th><label for="version_{{ p.name }}">{{ p.name }}</label></th>
<td class="version">
<td class="version col-md-1">
<select class="form-control" id="version_{{ p.name }}" name="version_{{ p.name }}">
<option value="ignore">ignore</option>
{% for t in p.tags %}
@ -66,6 +66,9 @@
{% endfor %}
</select>
</td>
<td>
<button type="button" id="ignore_{{ p.name }}" onclick="click_ignore(event)" class="btn btn-warning">Ignore</button>
</td>
</tr>
{% endfor %}
</tbody>

Loading…
Cancel
Save