Skip to content

Commit

Permalink
The focus can land at the end of the page view. Pressing the tab key …
Browse files Browse the repository at this point in the history
…would take users into the address bar. #51
  • Loading branch information
evlach committed Aug 15, 2014
1 parent 17c4473 commit d268fb4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 3 additions & 1 deletion js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ Utils.getUniqCol = function (matrix, col) {
return column;
};

Utils.msg2user = function (msg) {
Utils.msg2user = function (msg, page) {
//window.alert(msg);
$("#msg2user").html(msg);
$("#msg2user" ).dialog();
if(page)
accessdb.appRouter.loadPage(page);
};
Utils.getFileNameWithNoExt = function (x) {
return x.substr(0, x.lastIndexOf('.'));
Expand Down
1 change: 1 addition & 0 deletions pages/results-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</nav>
<div class="content">
<div class="grid">
<h1 id="ResultsHeading"></h1>
<div id="Results"><!-- Template: Results_template --></div>
</div>
</div>
Expand Down
19 changes: 10 additions & 9 deletions templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,16 @@ <h3>Test Results</h3>
</ul>
</script>
<script type="text/template" id="Results_template">
<h1>Test Results for <%=params.type%> <%
if(params.type==="Test")
{
%>
<%= Utils.stripTestID(params.typeValue)%>
<% } else { %>
<%= params.typeValue%>
<% }
%>, <%=params.ua%> <%=params.uaVer%> with <%=params.at%> <%=params.atVer%></h1>
<%
var str = "";
if(params.type==="Test")
{
str = str + Utils.stripTestID(params.typeValue);
} else {
str = str + params.typeValue;
}
$("#ResultsHeading").html("Test Results for" + params.type + str + params.ua+ +params.uaVer+ " with " +params.at + params.atVer );
%>
<div class="">
<div class="column-second">
<div id="Results"><!-- Template: Results_template --></div>
Expand Down

0 comments on commit d268fb4

Please sign in to comment.