Skip to content
Snippets Groups Projects
Commit 29c7042a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '300-change-label-over-drug-chemical-mirna-search-field' into 'master'

Resolve "Change label over drug/chemical/mirna search field"

Closes #300

See merge request piotr.gawron/minerva!213
parents 0dbf5984 2ae59717
No related branches found
No related tags found
1 merge request!213Resolve "Change label over drug/chemical/mirna search field"
Pipeline #
minerva (12.0.0~alpha.0) unstable; urgency=medium
* Feature: support for tair annotations
* Feature: support for STRING, STITCH, KEGG, CAZy, BRENDA annotators
* Feature: annotations contain info about source (there is difference
between manual and automatically added annotations)
* Feature: default permission for new projects are configurable
......
......@@ -20,6 +20,8 @@ function ChemicalPanel(params) {
if (self.getMap().getProject().getDisease() === undefined) {
self.disablePanel("DISEASE NOT DEFINED FOR PROJECT. PLEASE, DEFINE IT IN THE ADMIN SECTION.");
} else {
this.getControlElement(PanelControlElementType.SEARCH_LABEL).innerHTML = "SEARCH FOR TARGETS OF:";
}
}
......@@ -91,7 +93,7 @@ ChemicalPanel.prototype.refreshSearchAutocomplete = function () {
};
ChemicalPanel.prototype.getToolTipForAnnotation = function (annotation) {
var self =this;
var self = this;
var promise = Promise.resolve('disease');
if (annotation !== null && annotation !== undefined) {
promise = ServerConnector.getMesh({id: annotation.getResource()}).then(function (mesh) {
......
......@@ -16,6 +16,7 @@ function DrugPanel(params) {
params.placeholder = "drug, synonym, brand name";
AbstractDbPanel.call(this, params);
this.getControlElement(PanelControlElementType.SEARCH_LABEL).innerHTML = "SEARCH FOR TARGETS OF:";
}
DrugPanel.prototype = Object.create(AbstractDbPanel.prototype);
DrugPanel.prototype.constructor = DrugPanel;
......
......@@ -15,6 +15,7 @@ function MiRnaPanel(params) {
+ '<p>only targets with strong evidence as defined by miRTarBase are displayed<p>separate multiple search by semicolon</p>';
params.placeholder = "mature seq. ID (miRTarBase)";
AbstractDbPanel.call(this, params);
this.getControlElement(PanelControlElementType.SEARCH_LABEL).innerHTML = "SEARCH FOR TARGETS OF:";
}
MiRnaPanel.prototype = Object.create(AbstractDbPanel.prototype);
MiRnaPanel.prototype.constructor = MiRnaPanel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment