From fb8c77fff1564e36d8f6fa2235a0410b19bd457c Mon Sep 17 00:00:00 2001 From: Adam R Claxton Date: Tue, 25 Apr 2017 15:27:14 -0400 Subject: [PATCH] This should fix the bug that happened when Will tried to search for 'A10' I was just opening the style tag wrong --- .../webpages/administration/adminDeviceSettings.jsp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/WebContent/html/webpages/administration/adminDeviceSettings.jsp b/WebContent/html/webpages/administration/adminDeviceSettings.jsp index 476c6a3..24dc22b 100644 --- a/WebContent/html/webpages/administration/adminDeviceSettings.jsp +++ b/WebContent/html/webpages/administration/adminDeviceSettings.jsp @@ -370,7 +370,7 @@ function fuzzyFilter(deviceArray) } ////// Second pass: filter by MAC address options.extract = function(arg) {return arg.mac;}; - options.pre = "span style='color: orange; font-size: 115%'>" + options.pre = "" var macFilterResults = fuzzy.filter(searchText, deviceArray, options); // replace releveant field with bolded string for (var i = macFilterResults.length - 1; i >= 0; i--) { @@ -378,7 +378,7 @@ function fuzzyFilter(deviceArray) } ////// Third pass: filter by Manufacture options.extract = function(arg) {return arg.manufacturer;}; - options.pre = "span style='color: gold; font-size: 115%'>" + options.pre = "" var manufacturerFilterResults = fuzzy.filter(searchText, deviceArray, options); // replace releveant field with bolded string for (var i = manufacturerFilterResults.length - 1; i >= 0; i--) { @@ -386,7 +386,7 @@ function fuzzyFilter(deviceArray) } ////// Fourth pass: filter by Hardware options.extract = function(arg) {return arg.hardware;}; - options.pre = "span style='color: green; font-size: 115%'>" + options.pre = "" var hardwareFilterResults = fuzzy.filter(searchText, deviceArray, options); // replace releveant field with bolded string for (var i = hardwareFilterResults.length - 1; i >= 0; i--) { @@ -394,7 +394,7 @@ function fuzzyFilter(deviceArray) } ////// Fifth pass: filter by Model options.extract = function(arg) {return arg.model;}; - options.pre = "span style='color: blue; font-size: 115%'>" + options.pre = "" var modelFilterResults = fuzzy.filter(searchText, deviceArray, options); // replace releveant field with bolded string for (var i = modelFilterResults.length - 1; i >= 0; i--) { @@ -402,7 +402,7 @@ function fuzzyFilter(deviceArray) } ////// Sixth pass: filter by Serial options.extract = function(arg) {return arg.serial;}; - options.pre = "span style='color: violet; font-size: 115%'>" + options.pre = "" var serialFilterResults = fuzzy.filter(searchText, deviceArray, options); // replace releveant field with bolded string for (var i = serialFilterResults.length - 1; i >= 0; i--) {