Skip to content

Commit

Permalink
issue #396
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouji2013 committed Oct 31, 2019
1 parent 68111d8 commit 6a3db23
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
6 changes: 4 additions & 2 deletions web/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,13 +1005,15 @@
<tr>
<th>Target Transcript</th>
<td>
<a href="#{{transcript.stableURL}}">{{transcript.refseqId}}</a>
<a
href="#{{transcript?transcript.stableURL:''}}">{{transcript?transcript.refseqId:''}}</a>
</td>
</tr>
<tr>
<th>Target Gene</th>
<td>
<a href="#{{transcript.gene.stableURL}}">{{transcript.gene.displayName}}</a>
<a
href="#{{transcript?transcript.gene.stableURL:''}}">{{transcript?transcript.gene.displayName:''}}</a>
</td>
</tr>
<tr>
Expand Down
13 changes: 6 additions & 7 deletions web/src/main/webapp/js/ctd2.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
urlRoot: CORE_API_URL + "get/protein",
});

var ShRna = Backbone.Model.extend({
const ShRna = Backbone.Model.extend({
urlRoot: CORE_API_URL + "get/rna",
});

Expand Down Expand Up @@ -1527,27 +1527,26 @@
}
});

var ShrnaView = Backbone.View.extend({
const ShrnaView = Backbone.View.extend({
el: $("#main-container"),
template: _.template($("#shrna-tmpl").html()),
render: function () {
var thatModel = this.model;
var result = thatModel.subject.toJSON();
const thatModel = this.model;
const result = thatModel.subject.toJSON();
result.type = result.class;
$(this.el).html(this.template($.extend(result, {
tier: thatModel.tier ? thatModel.tier : null,
role: thatModel.role ? thatModel.role : null
})));

var subjectObservationView = new SubjectObservationsView({
new SubjectObservationsView({
model: {
subjectId: result.id,
tier: thatModel.tier,
role: thatModel.role
},
el: "#shrna-observation-grid"
});
subjectObservationView.render();
}).render();

return this;
}
Expand Down

0 comments on commit 6a3db23

Please sign in to comment.