JavaScript flow fix, fixing comboperson's autocomplete
This commit is contained in:
@@ -23,6 +23,11 @@ namespace Swarmops.Frontend.Automation
|
||||
|
||||
matches = Authorization.FilterPeopleToMatchAuthority(matches, CurrentUser.GetAuthority());
|
||||
|
||||
if (matches == null)
|
||||
{
|
||||
matches = new People();
|
||||
}
|
||||
|
||||
if (matches.Count > 10)
|
||||
{
|
||||
matches.RemoveRange(10, matches.Count - 10);
|
||||
|
||||
@@ -61,7 +61,8 @@
|
||||
var autoCompleteLoader = function(param,success,error){
|
||||
var q = param.q || '';
|
||||
if (q.length < 3) {
|
||||
success (null);
|
||||
success (new Array());
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
url: '/Automation/Json-SearchPeoplePattern.aspx',
|
||||
|
||||
Reference in New Issue
Block a user