[FIX] web: add a default value for progressbar
Remove the value in the input leaded to a traceback.
This commit is contained in:
@@ -84,7 +84,7 @@ var ProgressBar = Widget.extend({
|
||||
if(this.edit_max_value) {
|
||||
this.max_value = $(e.target).val();
|
||||
} else {
|
||||
this.value = $(e.target).val();
|
||||
this.value = $(e.target).val() || 0;
|
||||
}
|
||||
|
||||
this._render_value();
|
||||
|
||||
Reference in New Issue
Block a user