JavaScript flow fix, fixing comboperson's autocomplete

This commit is contained in:
Rick Falkvinge
2014-02-24 16:42:33 +00:00
parent ae8ec7627d
commit c262b246d4
2 changed files with 7 additions and 1 deletions
@@ -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);
+2 -1
View File
@@ -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',