Commit 6e99fdef authored by Piotr Gawron's avatar Piotr Gawron
Browse files

test refactor (there is no need for html tags that will be created in

framework)
parent 8a7bdcf9
......@@ -118,38 +118,6 @@ Helper.prototype.createMiRnaTab = function() {
Helper.prototype.createPanelTab = function(id) {
var result = document.createElement("div");
result.id = id;
var searchQueryDiv = document.createElement("div");
searchQueryDiv.setAttribute("name", "searchQuery");
result.appendChild(searchQueryDiv);
var searchButton = document.createElement("img");
searchButton.setAttribute("name", "searchButton");
searchQueryDiv.appendChild(searchButton);
var searchInput = document.createElement("input");
searchInput.setAttribute("name", "searchInput");
searchQueryDiv.appendChild(searchInput);
var searchPerfectMatch = document.createElement("input");
searchPerfectMatch.type = "checkbox";
searchPerfectMatch.setAttribute("name", "searchPerfectMatch");
searchQueryDiv.appendChild(searchPerfectMatch);
var searchResultsDiv = document.createElement("div");
searchResultsDiv.setAttribute("name", "searchResults");
result.appendChild(searchResultsDiv);
var navDiv = document.createElement("ul");
navDiv.className = "nav nav-tabs";
navDiv.innerHTML = '<li class="active"><a href="#set1"/></li>';
var contentDiv = document.createElement("div");
contentDiv.className = "tab-content";
contentDiv.innerHTML = '<div class="tab-pane fade active in" id="set1"/>';
searchResultsDiv.appendChild(navDiv);
searchResultsDiv.appendChild(contentDiv);
return result;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment