This commit is contained in:
@@ -5,10 +5,9 @@
|
||||
|
||||
MISC ITEMS THAT CAME UP
|
||||
|
||||
todo: search for customer field that is in the weeds see what the result summary looks like because it seems sketchy, do this before moving on to rest below
|
||||
|
||||
todo: All objects, check biz searchresult code to ensure all text fields were added as some were probably missed, particularly recent ones
|
||||
This is very fucked up, Customer has nothing being indexed but standard fields
|
||||
perhaps it's better changed to a reflection method that finds the text? But then sometimes you don't want a field indexed...fuck
|
||||
|
||||
|
||||
todo: newer objects use full translation key for form field definitions but some forms have abbreviated or lower case for ShowMe() code, double check recent
|
||||
todo: grid list filter needs to have a single button to reset / clear to default because things like review will always be having their filters set
|
||||
|
||||
@@ -217,15 +217,12 @@ export default {
|
||||
window.$gz.form.setErrorBoxErrors(vm);
|
||||
} else {
|
||||
let showInfo = res.data;
|
||||
let searchTerms = vm.searchPhrase
|
||||
.toLocaleLowerCase()
|
||||
.replace(/[*]/gi, "")
|
||||
.split(" ");
|
||||
let searchTerms = vm.searchPhrase.replace(/[*]/gi, "").split(" ");
|
||||
for (let i = 0; i < searchTerms.length; i++) {
|
||||
showInfo = showInfo.replace(
|
||||
searchTerms[i],
|
||||
"<span class='v-list-item__mask'>" + searchTerms[i] + "</span>"
|
||||
);
|
||||
let regEx = new RegExp(searchTerms[i], "ig");
|
||||
let replaceMask =
|
||||
"<span class='v-list-item__mask'>" + searchTerms[i] + "</span>";
|
||||
showInfo = showInfo.replace(regEx, replaceMask);
|
||||
}
|
||||
|
||||
item.info = showInfo;
|
||||
|
||||
Reference in New Issue
Block a user