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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user