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

css classes added to specify the context

parent e96a4170
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!585Resolve "allow plugins to listen on search tab change"
Pipeline #8362 passed
...@@ -23,6 +23,8 @@ function ChemicalPanel(params) { ...@@ -23,6 +23,8 @@ function ChemicalPanel(params) {
AbstractDbPanel.call(self, params); AbstractDbPanel.call(self, params);
$(params.element).addClass("minerva-chemical-panel");
if (self.getMap().getProject().getDisease() === undefined) { if (self.getMap().getProject().getDisease() === undefined) {
self.disablePanel("The Comparative Toxicogenomics Database (CTD) requires a disease context. " + self.disablePanel("The Comparative Toxicogenomics Database (CTD) requires a disease context. " +
"Choose an appropriate MeSH code and provide it in the via the Admin section of this MINERVA platform. " + "Choose an appropriate MeSH code and provide it in the via the Admin section of this MINERVA platform. " +
......
...@@ -22,6 +22,7 @@ function DrugPanel(params) { ...@@ -22,6 +22,7 @@ function DrugPanel(params) {
params.placeholder = "drug, synonym, brand name"; params.placeholder = "drug, synonym, brand name";
AbstractDbPanel.call(this, params); AbstractDbPanel.call(this, params);
$(params.element).addClass("minerva-drug-panel");
var self = this; var self = this;
self.getControlElement(PanelControlElementType.SEARCH_LABEL).innerHTML = "SEARCH FOR TARGETS OF:"; self.getControlElement(PanelControlElementType.SEARCH_LABEL).innerHTML = "SEARCH FOR TARGETS OF:";
} }
......
...@@ -35,6 +35,8 @@ function GenericSearchPanel(params) { ...@@ -35,6 +35,8 @@ function GenericSearchPanel(params) {
AbstractDbPanel.call(self, params); AbstractDbPanel.call(self, params);
$(params.element).addClass("minerva-generic-search-panel");
self.createSearchGui(); self.createSearchGui();
self.getMap().addListener("onBioEntityClick", function (e) { self.getMap().addListener("onBioEntityClick", function (e) {
......
...@@ -21,6 +21,7 @@ function MiRnaPanel(params) { ...@@ -21,6 +21,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);
$(params.element).addClass("minerva-mirna-panel");
this.getControlElement(PanelControlElementType.SEARCH_LABEL).innerHTML = "SEARCH FOR TARGETS OF:"; this.getControlElement(PanelControlElementType.SEARCH_LABEL).innerHTML = "SEARCH FOR TARGETS OF:";
} }
MiRnaPanel.prototype = Object.create(AbstractDbPanel.prototype); MiRnaPanel.prototype = Object.create(AbstractDbPanel.prototype);
......
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