Commit 1ddf56fd authored by Jérome Perrin's avatar Jérome Perrin

GUI: display prop in dialog when it's a number

parent fb66a1e2
......@@ -109,7 +109,7 @@
$.each(property_list, function (key, property) {
if (property._class === "Dream.Property") {
previous_value = previous_data[property.id] || "";
if (previous_value.length > 0) {
if (previous_value.length > 0 || typeof previous_value == "number") {
previous_value = ' value="' + previous_value + '"';
}
fieldset.append("<label>" + prefix + property.id + "</label>" +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment