增加load方法的默认值支持
This commit is contained in:
parent
3375273c59
commit
0efb962554
|
@ -13,7 +13,9 @@
|
|||
var ctl = $("#" + this.options.map[name]);
|
||||
ctl.val(value[name]);
|
||||
if (ctl.attr('data-toggle') == "dropdown") {
|
||||
ctl.children(':first').text(ctl.next().find('[data-val="' + value[name] + '"]').text());
|
||||
var val = value[name];
|
||||
if (!val) val = ctl.attr('data-default-val');
|
||||
ctl.children(':first').text(ctl.next().find('[data-val="' + val + '"]').text());
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue