fixed not working readonly display of integer or float widgets, caused by attribute validation allowing string only

This commit is contained in:
Ralf Becker 2013-11-02 14:49:26 +00:00
parent 511a925bb4
commit 52a3a5e2ae

View File

@ -98,9 +98,10 @@ et2_register_widget(et2_number, ["int", "integer", "float"]);
var et2_number_ro = et2_textbox_ro.extend(
{
attributes: {
"min": {"ignore": true},
"max": {"ignore": true},
"precision": {"ignore": true}
min: { ignore: true},
max: { ignore: true},
precision: { ignore: true},
value: { type: "float" }
}
});
et2_register_widget(et2_number_ro, ["int_ro", "integer_ro", "float_ro"]);