Commit b392131d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

helper function doesn';t create html tags anymore

parent a7352f4f
......@@ -125,46 +125,6 @@ Helper.prototype.createUserTab = function() {
var result = document.createElement("div");
result.id = "userTab";
var userLoginTab = document.createElement("div");
userLoginTab.setAttribute("name", "userLoginTab");
result.appendChild(userLoginTab);
var loginText = document.createElement("input");
loginText.setAttribute("name", "loginText");
userLoginTab.appendChild(loginText);
var passwordText = document.createElement("input");
passwordText.setAttribute("name", "passwordText");
userLoginTab.appendChild(passwordText);
var loginButton = document.createElement("button");
loginButton.setAttribute("name", "loginButton");
userLoginTab.appendChild(loginButton);
var userDataTab = document.createElement("div");
userDataTab.setAttribute("name", "userDataTab");
result.appendChild(userDataTab);
var loginValue = document.createElement("span");
loginValue.setAttribute("name", "loginValue");
userDataTab.appendChild(loginValue);
var nameValue = document.createElement("span");
nameValue.setAttribute("name", "nameValue");
userDataTab.appendChild(nameValue);
var surnameValue = document.createElement("span");
surnameValue.setAttribute("name", "surnameValue");
userDataTab.appendChild(surnameValue);
var emailValue = document.createElement("span");
emailValue.setAttribute("name", "emailValue");
userDataTab.appendChild(emailValue);
var logoutButton = document.createElement("button");
logoutButton.setAttribute("name", "logoutButton");
userLoginTab.appendChild(logoutButton);
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