From 09bc4f17d3b137975507f1c1f0593e59ea7cf47c Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Fri, 3 Oct 2014 10:03:32 +0200 Subject: [PATCH] Two UX improvements to ListFindPeople --- Site5/App_GlobalResources/Pages.People.resx | 2 +- Site5/Pages/v5/Swarm/ListFindPeople.aspx | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Site5/App_GlobalResources/Pages.People.resx b/Site5/App_GlobalResources/Pages.People.resx index 55eb6615..b5a683e7 100644 --- a/Site5/App_GlobalResources/Pages.People.resx +++ b/Site5/App_GlobalResources/Pages.People.resx @@ -131,6 +131,6 @@ List and Find People - Over 1,000 matches. Please refine search. + The result set contains over a thousand people (display limited to a thousand). Please refine your search? \ No newline at end of file diff --git a/Site5/Pages/v5/Swarm/ListFindPeople.aspx b/Site5/Pages/v5/Swarm/ListFindPeople.aspx index 954ef062..c41b9442 100644 --- a/Site5/Pages/v5/Swarm/ListFindPeople.aspx +++ b/Site5/Pages/v5/Swarm/ListFindPeople.aspx @@ -54,7 +54,14 @@ { onLoadSuccess: function () { - $("#spanHitCount").text($(this).datagrid('getRows').length); + var rowCount = $(this).datagrid('getRows').length; + $("#spanHitCount").text(rowCount); + if (rowCount == 1000) { + alertify.log("<%= Resources.Pages.People.ListFindPeople_TooManyHits %>"); + } + + // Leaving some remnant code from PayOutMoney in here for now, as similar code will be needed + // when actions are enabled on the search results $(".LocalIconApproval").attr("src", "/Images/Icons/iconshock-balloon-yes-16px.png"); $(".LocalIconApproved").attr("src", "/Images/Icons/iconshock-greentick-16px.png"); @@ -138,6 +145,8 @@ }); } + + // end of remnant code from PayOutMoney }); } @@ -180,7 +189,7 @@

(0)