Skip to content

Commit

Permalink
Merge pull request #1087 from intermine/i1075
Browse files Browse the repository at this point in the history
merge #1075 into master
  • Loading branch information
Julie Sullivan committed Jul 14, 2015
2 parents efc8be5 + 12bd648 commit d224b2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions intermine/webapp/main/resources/webapp/reportTemplate.jsp
Expand Up @@ -54,7 +54,7 @@
<div class="template" id="${elemId}">
<im:templateLine scope="${scope}" templateQuery="${templateQuery}" interMineObject="${interMineObject}" bagName="${interMineIdBag.name}" trail="${trail}" templateType="${tmlType}" />
<p class="description" style="display:none;">${templateQuery.description}</p>

<%-- JS target for the table --%>
<div class="collection-table" id="${tableContainerId}"></div>
<script type="text/javascript">
Expand All @@ -71,6 +71,8 @@
$SERVICE.count(query).then(
function(c) {
var cstr = intermine.utils.numToString(c, ",", 3);
if (typeof c === 'undefined') {c = 0;}
cstr = c.toString()
$('#${elemId} h3 span.name').after('<span class="count">(' + cstr + ' rows)</span>');
if (c < 1) {
disableTemplate();
Expand All @@ -92,7 +94,7 @@
}else{
localStorage.${elemId} = "show";
}
}
}
});
});
if(${useLocalStorage} && typeof(Storage)!=="undefined"){
Expand Down

0 comments on commit d224b2a

Please sign in to comment.