- Fixed after deleting a record in TablesList, not updated correctly #110

- Improve SEO Rank with WooRank tips...
This commit is contained in:
Paolo Arena
2019-11-20 00:15:08 +01:00
parent 17d5a50662
commit 6c575ac9ed
32 changed files with 196 additions and 94 deletions

View File

@@ -2394,6 +2394,15 @@ export const tools = {
return ris
},
getaltimg(dir: string, file: string, alt?: string) {
const myimage = dir + file
const myrec = static_data.preLoadImages.find((rec) => rec.imgname === myimage)
if (myrec)
return (myrec) ? myrec.alt : 'my image'
else
return alt
},
getimgFullpathbysize(fileimg: string) {
const ind = fileimg.lastIndexOf('/')
if (ind > 0) {