Skip to content

Commit

Permalink
sort table
Browse files Browse the repository at this point in the history
  • Loading branch information
evlach committed Aug 9, 2014
1 parent 3c989da commit efe616a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions js/lib/jquery.tablesorter.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions js/testresult-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ accessdb.Views.TestResultsFullViewByTechnique = function (){
this.$el.find('.chart').peity("pie", {
fill: ["green", "#f98"]
});
var table = this.$el.find('table').get();
Utils.sortResultsTable(table, table);
this.$el.find('table').tablesorter();
}
};
this.fetch = function (callback){
Expand Down
4 changes: 2 additions & 2 deletions templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ <h1>Test Results for <%=params.type%> <%=params.typeValue%>, <%=params.ua%> <%=p
</div>
<% _.each(results, function(r) { %>
<table class="testcase-details">
<caption><strong>Testcase:</strong> <a href="#/results-test.html/<%= r.testUnitId %>"><%= r.testUnitId %></a>: <%=r.testTitle%></caption>
<caption><strong>Testcase:</strong> <a href="#/results-test.html/<%= r.testUnitId %>"><%= r.testUnitId %></a>: <%=r.testTitle%></caption>
<col class="col1"> <col class="col2"> <col class="col3"> <col class="col4"> <col class="col5"> <col class="col6 admin roleAdminOnly">
<thead>
<tr>
Expand Down Expand Up @@ -343,7 +343,7 @@ <h1>Test Results for <%=params.type%> <%=params.typeValue%>, <%=params.ua%> <%=p
</script>

<script type="text/template" id="TestResultsFullViewByTechnique_template">
<table class="result-details">
<table class="result-details tablesorter" id="TestResultsFullViewByTechnique_table">
<caption>In the columns, you can find browser versions.<br>The rows show assistive technologies.</caption>
<% lresults = results.length
accessdb.p = {
Expand Down

0 comments on commit efe616a

Please sign in to comment.