Commit bbc2f6e1 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 7be85abd
......@@ -862,8 +862,8 @@ $(function () {
response( $.map( data, function( item ) {
return {
label: item.uid + ": " + item.title,
value: item.title
label: item.title,
value: item.uid
}
}));
......@@ -904,8 +904,8 @@ $(function () {
// print result in autocomplete list
response( $.map( data, function( item ) {
return {
label: item.uid + ": " + item.first_name + " " + item.last_name + " [" + item.username + "]",
value: item.username
label: item.first_name + " " + item.last_name + " [" + item.username + "]",
value: item.uid
}
}));
}
......@@ -914,7 +914,7 @@ $(function () {
minLength: 2,
select: function( event, ui ) {
// update the others fields automatically
var uid = ui.item.label.split(':')[0];
var uid = ui.item.value;
clear_error_msg();
update_fields(uid);
lock_fields(1);
......@@ -947,8 +947,8 @@ $(function () {
response( $.map( data, function( item ) {
return {
label: item.uid + ": " + item.first_name + " " + item.last_name + " [" + item.username + "]",
value: item.last_name
label: item.first_name + " " + item.last_name + " [" + item.username + "]",
value: item.uid
}
}));
}
......@@ -957,7 +957,7 @@ $(function () {
minLength: 2,
select: function( event, ui ) {
// update fields automatically
var uid = ui.item.label.split(':')[0];
var uid = ui.item.value;
clear_error_msg();
update_fields(uid);
lock_fields(1);
......@@ -992,8 +992,8 @@ $(function () {
// autocomplete data list
response( $.map( data, function( item ) {
return {
label: item.uid + ": " + item.first_name + " " + item.last_name + " [" + item.username + "]",
value: item.first_name
label: item.first_name + " " + item.last_name + " [" + item.username + "]",
value: item.uid
}
}));
......@@ -1003,7 +1003,7 @@ $(function () {
minLength: 2,
select: function( event, ui ) {
// update the others fields automatically
var uid = ui.item.label.split(':')[0];
var uid = ui.item.value;
clear_error_msg();
update_fields(uid);
lock_fields(1);
......
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