This commit is contained in:
@@ -5,10 +5,9 @@
|
|||||||
|
|
||||||
MISC ITEMS THAT CAME UP
|
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
|
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: 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
|
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);
|
window.$gz.form.setErrorBoxErrors(vm);
|
||||||
} else {
|
} else {
|
||||||
let showInfo = res.data;
|
let showInfo = res.data;
|
||||||
let searchTerms = vm.searchPhrase
|
let searchTerms = vm.searchPhrase.replace(/[*]/gi, "").split(" ");
|
||||||
.toLocaleLowerCase()
|
|
||||||
.replace(/[*]/gi, "")
|
|
||||||
.split(" ");
|
|
||||||
for (let i = 0; i < searchTerms.length; i++) {
|
for (let i = 0; i < searchTerms.length; i++) {
|
||||||
showInfo = showInfo.replace(
|
let regEx = new RegExp(searchTerms[i], "ig");
|
||||||
searchTerms[i],
|
let replaceMask =
|
||||||
"<span class='v-list-item__mask'>" + searchTerms[i] + "</span>"
|
"<span class='v-list-item__mask'>" + searchTerms[i] + "</span>";
|
||||||
);
|
showInfo = showInfo.replace(regEx, replaceMask);
|
||||||
}
|
}
|
||||||
|
|
||||||
item.info = showInfo;
|
item.info = showInfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user