From 1c32702bbacbb1bf8e764a7b933358dc853efc4b Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sat, 12 Jul 2014 18:34:06 -0400 Subject: [PATCH] VRFS-1915 fixed Find Session bug where first session in each section was not being cleared out when refreshing the list resulting in duplicates --- web/app/assets/javascripts/findSession.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/assets/javascripts/findSession.js b/web/app/assets/javascripts/findSession.js index 12a920cfa..432864436 100644 --- a/web/app/assets/javascripts/findSession.js +++ b/web/app/assets/javascripts/findSession.js @@ -314,12 +314,12 @@ currentActiveSessionsPage = 0; $noMoreActiveSessions.hide(); $asScroller.infinitescroll('resume'); - $('table#sessions-active').children(':not(:first-child)').remove(); + $('table#sessions-active').empty(); currentScheduledSessionsPage = 0; $noMoreScheduledSessions.hide(); $ssScroller.infinitescroll('resume'); - $('table#sessions-scheduled').children(':not(:first-child)').remove(); + $('table#sessions-scheduled').empty(); } function events() {