Bug Fix #66: Add offline device ui glitch

Only updates the text-box with the user id (instead of the full name),
to avoid users not correctly selecting a item from the auto-complete
list and then trying to submit the form.
This commit is contained in:
Gary Sharp
2014-07-26 16:06:56 +10:00
parent a43db01b96
commit c528a2be26
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -129,7 +129,7 @@
source: '@(Url.Action(MVC.API.Search.UsersUpstream()))',
minLength: 2,
focus: function (e, ui) {
$AssignedUserId.val(ui.item.DisplayName + ' (' + ui.item.Id + ')');
$AssignedUserId.val(ui.item.Id);
return false;
},
select: function (e, ui) {
@@ -502,7 +502,7 @@ WriteLiteral(@"
WriteLiteral(@"',
minLength: 2,
focus: function (e, ui) {
$AssignedUserId.val(ui.item.DisplayName + ' (' + ui.item.Id + ')');
$AssignedUserId.val(ui.item.Id);
return false;
},
select: function (e, ui) {