[LNT] r306136 - Be able to select all regression on the regression list page
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 23 11:26:51 PDT 2017
Author: cmatthews
Date: Fri Jun 23 13:26:51 2017
New Revision: 306136
URL: http://llvm.org/viewvc/llvm-project?rev=306136&view=rev
Log:
Be able to select all regression on the regression list page
Modified:
lnt/trunk/lnt/server/ui/templates/v4_regression_list.html
Modified: lnt/trunk/lnt/server/ui/templates/v4_regression_list.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_regression_list.html?rev=306136&r1=306135&r2=306136&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_regression_list.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_regression_list.html Fri Jun 23 13:26:51 2017
@@ -51,6 +51,9 @@
</table>
<!-- Button to trigger modal -->
+<a role="button" onclick="toggle_checks()" class="btn">Toggle</a>
+
+<!-- Button to trigger modal -->
<a href="#mergeRegressionModal" role="button" class="btn" data-toggle="modal">Merge</a>
<!-- Button to trigger modal -->
<a href="#delRegressionModal" role="button" class="btn" data-toggle="modal">Delete</a>
@@ -105,6 +108,16 @@ $(document).ready( function () {
});
+/** Toggle the checkbox state of all the visible checkboxes.
+ *
+ */
+function toggle_checks() {
+ var checkBoxes = $('input:checkbox');
+ checkBoxes.prop("checked", !checkBoxes.prop("checked"));
+ checkBoxes.trigger('change');
+}
+
+
</script>
{% endblock %}
More information about the llvm-commits
mailing list