Etemplate: Changes to adapt to get/set in valueWidget interface

This commit is contained in:
nathangray
2021-05-19 13:54:56 -06:00
parent 94f5c437e8
commit 6790ffb273
11 changed files with 7 additions and 16 deletions

View File

@@ -94,6 +94,7 @@ class et2_progress extends et2_valueWidget implements et2_IDetachedDOM
// setting the value as width of the progress-bar
set_value(_value)
{
super.set_value(_value);
_value = parseInt(_value)+"%"; // make sure we have percent attached
this.progress.style.width = _value;
if (!this.options.label) this.set_label(_value);