Commit 80eaaedd authored by Gabriel Monnerat's avatar Gabriel Monnerat

- clean up the code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44206 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e0f9441
......@@ -137,7 +137,6 @@ function displayLoginForm(){ \n
$.get("WebSection_loginDialog", function(data){\n
$("div.header-left fieldset.widget").append("<p>" + data + "</p>");\n
$("td#new-account-form").click(function(event){\n
$("div#login-box").css("width", "30%");\n
$("table#field_table, table#new-account-table").hide();\n
$("table#create-new-user input[type=\'text\'], table#create-new-user input[type=\'password\']").each(function(){\n
$(this).attr("value", "");\n
......@@ -480,11 +479,10 @@ $().ready(function(){\n
});\n
$("a#login").click(function(event){\n
event.preventDefault();\n
if ($("div#login-box").html() == null){\n
if ($("div#main-content").html() == null){\n
displayLoginForm();\n
}\n
if ($("table#create-new-user").css("display") != "none"){\n
$("div#login-box").css("width", "23%");\n
$("table#create-new-user").hide();\n
$("table#field_table, table#new-account-table").show();\n
}\n
......
287
\ No newline at end of file
288
\ No newline at end of file
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