From b66ddfc155a93bb6e07efad9edcb31f331fa1988 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Wed, 16 Apr 2014 13:53:32 -0400 Subject: [PATCH] Search helper now knows how to turn 'loading' message on at first page load. --- awx/ui/static/js/helpers/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/static/js/helpers/search.js b/awx/ui/static/js/helpers/search.js index 0071a47e04..55c4aa43de 100644 --- a/awx/ui/static/js/helpers/search.js +++ b/awx/ui/static/js/helpers/search.js @@ -451,7 +451,7 @@ angular.module('SearchHelper', ['RestServices', 'Utilities', 'RefreshHelper']) */ scope.search = function (iterator, page, load, calcOnly) { page = page || null; - load = (load) ? true : false; + load = (load || !scope.set || scope.set.length === 0) ? true : false; calcOnly = (calcOnly) ? true : false; if (load) { scope[set] = []; //clear the list array to make sure 'Loading' is the only thing visible on the list