From b4277f1f1759d03cf204cc271fb66d208b20da80 Mon Sep 17 00:00:00 2001 From: denise Date: Wed, 19 Sep 2012 15:46:03 -0400 Subject: [PATCH] CC-4495: Library -> Advanced Search: Some fields with ranges do not get validated -fixed --- airtime_mvc/public/js/airtime/library/library.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/library/library.js b/airtime_mvc/public/js/airtime/library/library.js index 2f70037cd..f83ddb0fe 100644 --- a/airtime_mvc/public/js/airtime/library/library.js +++ b/airtime_mvc/public/js/airtime/library/library.js @@ -1041,7 +1041,7 @@ function addQtipToSCIcons(){ * This function is called from dataTables.columnFilter.js */ function validateAdvancedSearch(divs) { - var valid = true, + var valid, allValid = true, fieldName, fields, @@ -1059,6 +1059,7 @@ function validateAdvancedSearch(divs) { fieldName = $(div).children(':nth-child(2)').attr('id'); fields = $(div).children().find('input'); searchTermType = validationTypes[fieldName]; + valid = true; $.each(fields, function(i, field){ searchTerm[i] = $(field).val();