Commit 5bb90cf4 authored by Gabriel Monnerat's avatar Gabriel Monnerat

fix issue to open dialog to create new user. If user click on link several...

fix issue to open dialog to create new user. If user click on link several times, the html is duplicated.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43915 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b63f023c
......@@ -1069,6 +1069,7 @@ td#new-account-form {\n
\n
table#create-new-user {\n
display:none;\n
margin-top: -14px;\n
}
]]></string> </value>
......
......@@ -105,13 +105,15 @@ function changeCheckBoxValue(value){\n
}\n
\n
function displayLoginForm(){\n
$("a.ung_docs, img[alt=\'calendar_logo_box\']").hide();\n
$("a.ung_docs, img[alt=\'calendar_logo_box\'], table#create-new-user").hide();\n
$("div.header-left div.field input, div.main-right, div.main-left").hide();\n
if ($("div#login_form").html() == null){\n
$.get("WebSection_loginDialog", function(data){\n
$("div.header-left fieldset.widget").append("<p>" + data + "</p>")\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
$("table#field_table, table#new-account-table").hide();\n
$("table#create-new-user").show();\n
});\n
}\n
});\n
}\n
\n
$().ready(function(){\n
......@@ -425,11 +427,13 @@ $().ready(function(){\n
});\n
$("a#login").click(function(event){\n
event.preventDefault();\n
displayLoginForm();\n
});\n
$("td#new-account-form").click(function(event){\n
$("table#field_table, table#new-account-table").hide();\n
$("table#create-new-user").show();\n
if ($("div#login-box").html() == null){\n
displayLoginForm();\n
}\n
if ($("table#create-new-user").css("display") != "none"){\n
$("table#create-new-user").hide();\n
$("table#field_table, table#new-account-table").show();\n
}\n
});\n
$("input.listbox-check-all").click(function(event){\n
event.preventDefault();\n
......
265
\ No newline at end of file
266
\ 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