Commit 0b887b66 authored by joshua-gould's avatar joshua-gould

update ui for file in setValue

parent a7203c5c
...@@ -767,13 +767,13 @@ morpheus.FormBuilder.prototype = { ...@@ -767,13 +767,13 @@ morpheus.FormBuilder.prototype = {
}, },
setValue : function(name, value) { setValue : function(name, value) {
var v = this.$form.find('[name=' + name + ']'); var v = this.$form.find('[name=' + name + ']');
if (v.length === 0) { if (v.length === 0) {
v = this.$form.find('[name=' + name + '_picker]'); v = this.$form.find('[name=' + name + '_picker]');
if (v.attr('type') === 'file') { if (v.attr('type') === 'file') {
v.val(value);
v.selectpicker('render');
return v.data('files', value); return v.data('files', value);
} }
} }
var type = v.attr('type'); var type = v.attr('type');
var list = v.data('morpheus.checkbox-list'); var list = v.data('morpheus.checkbox-list');
......
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