Search helper now knows how to turn 'loading' message on at first page load.

This commit is contained in:
Chris Houseknecht 2014-04-16 13:53:32 -04:00
parent 98c56827db
commit b66ddfc155

View File

@ -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