addInfo fix and simpler version numbering system

- addInfo: revert back to initial solution to fix mixing up pre and post
- new version: 0.14.0.7 (stop using 2 digits at the end
This commit is contained in:
Ewoud
2022-11-28 20:34:42 +01:00
parent 91c2ce0d8f
commit bf51b0bdf1
8 changed files with 358 additions and 354 deletions

View File

@@ -190,8 +190,12 @@
if (!obj.length) return;
if (typeof el === "string" && obj[0]) obj[0].placeholder = el;
else if (obj[el]) {
if (txt!="") obj[el].insertAdjacentHTML('afterend', ' '+txt);
if (txt2!="") obj[el].insertAdjacentHTML('beforebegin', txt2 + ' '); //add pre texts
if (txt2!="") {
obj[el].insertAdjacentHTML('beforebegin', txt + ' ');
obj[el].insertAdjacentHTML('afterend', ' '+txt2);
}
else
obj[el].insertAdjacentHTML('afterend', ' '+txt);
}
}
// load settings and insert values into DOM