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

signature of _createTargetInfoDiv method refactored

parent cc90804a
No related branches found
No related tags found
1 merge request!89Resolve "Drugs - Show all - content and alignment"
......@@ -222,7 +222,11 @@ AbstractInfoWindow.prototype.createOverlayInfoDiv = function(overlay, data) {
* @returns {String} with a div for drug overlay information
*/
AbstractInfoWindow.prototype._createDrugInfoDiv = function(overlay, data) {
return this._createTargetInfoDiv(overlay, data, "Interacting drugs");
return this._createTargetInfoDiv({
overlay : overlay,
data : data,
name : "Interacting drugs"
});
};
/**
......@@ -408,7 +412,11 @@ AbstractInfoWindow.prototype.update = function() {
return this._updateContent();
};
AbstractInfoWindow.prototype._createTargetInfoDiv = function(overlay, data, name) {
AbstractInfoWindow.prototype._createTargetInfoDiv = function(params) {
var overlay = params.overlay;
var data = params.data;
var name = params.name;
var self = this;
var result = document.createElement("div");
......@@ -550,7 +558,11 @@ AbstractInfoWindow.prototype.getGuiUtils = function() {
* @returns DOM element with a div for comment overlay information
*/
AbstractInfoWindow.prototype._createChemicalInfoDiv = function(overlay, data) {
return this._createTargetInfoDiv(overlay, data, "Interacting chemicals");
return this._createTargetInfoDiv({
overlay : overlay,
data : data,
name : "Interacting chemicals",
});
};
/**
......@@ -561,7 +573,11 @@ AbstractInfoWindow.prototype._createChemicalInfoDiv = function(overlay, data) {
* @returns DOM element with a div for comment overlay information
*/
AbstractInfoWindow.prototype._createMiRnaInfoDiv = function(overlay, data) {
return this._createTargetInfoDiv(overlay, data, "Interacting Micro RNAs");
return this._createTargetInfoDiv({
overlay : overlay,
data : data,
name : "Interacting Micro RNAs"
});
};
/**
......
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