Commit 018b63a8 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

add autocomplete on email

parent fbdbc7e6
......@@ -894,7 +894,7 @@ $(function () {
$("#user_email_val").autocomplete({
source: function( request, response ) {
$.ajax({
url: "index.php?eID=tx_nG6&type=autocomplete&gender=email&project_id=" + $("#current_project_id").val()+"&name_start="+$("#user_email_val").val(),
url: "index.php?eID=tx_nG6&type=autocomplete&gender=email&project_id="+$("#current_project_id").val()+"&name_start="+$("#user_email_val").val(),
dataType: 'json',
success: function( data ) {
......@@ -920,7 +920,7 @@ $(function () {
},
search: function(event, ui) {
var reg = /^[a-zA-Z0-9âàêëéèûùîïôç]+$/;
if( !reg.test($("#user_group_val").val()) ){
if( !reg.test($("#user_email_val").val()) ){
return false;
}
},
......
Supports Markdown
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