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

labels for search box changed for chemical, drug, mirna

parent ec18aee6
No related branches found
No related tags found
1 merge request!213Resolve "Change label over drug/chemical/mirna search field"
Pipeline #
...@@ -20,6 +20,8 @@ function ChemicalPanel(params) { ...@@ -20,6 +20,8 @@ function ChemicalPanel(params) {
if (self.getMap().getProject().getDisease() === undefined) { if (self.getMap().getProject().getDisease() === undefined) {
self.disablePanel("DISEASE NOT DEFINED FOR PROJECT. PLEASE, DEFINE IT IN THE ADMIN SECTION."); 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 () { ...@@ -91,7 +93,7 @@ ChemicalPanel.prototype.refreshSearchAutocomplete = function () {
}; };
ChemicalPanel.prototype.getToolTipForAnnotation = function (annotation) { ChemicalPanel.prototype.getToolTipForAnnotation = function (annotation) {
var self =this; var self = this;
var promise = Promise.resolve('disease'); var promise = Promise.resolve('disease');
if (annotation !== null && annotation !== undefined) { if (annotation !== null && annotation !== undefined) {
promise = ServerConnector.getMesh({id: annotation.getResource()}).then(function (mesh) { promise = ServerConnector.getMesh({id: annotation.getResource()}).then(function (mesh) {
......
...@@ -16,6 +16,7 @@ function DrugPanel(params) { ...@@ -16,6 +16,7 @@ function DrugPanel(params) {
params.placeholder = "drug, synonym, brand name"; params.placeholder = "drug, synonym, brand name";
AbstractDbPanel.call(this, params); AbstractDbPanel.call(this, params);
this.getControlElement(PanelControlElementType.SEARCH_LABEL).innerHTML = "SEARCH FOR TARGETS OF:";
} }
DrugPanel.prototype = Object.create(AbstractDbPanel.prototype); DrugPanel.prototype = Object.create(AbstractDbPanel.prototype);
DrugPanel.prototype.constructor = DrugPanel; DrugPanel.prototype.constructor = DrugPanel;
......
...@@ -15,6 +15,7 @@ function MiRnaPanel(params) { ...@@ -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>'; + '<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)"; params.placeholder = "mature seq. ID (miRTarBase)";
AbstractDbPanel.call(this, params); AbstractDbPanel.call(this, params);
this.getControlElement(PanelControlElementType.SEARCH_LABEL).innerHTML = "SEARCH FOR TARGETS OF:";
} }
MiRnaPanel.prototype = Object.create(AbstractDbPanel.prototype); MiRnaPanel.prototype = Object.create(AbstractDbPanel.prototype);
MiRnaPanel.prototype.constructor = MiRnaPanel; 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