modularize infill functionality
This commit is contained in:
parent
7ba1914300
commit
c8297f12ea
9 changed files with 174 additions and 129 deletions
|
|
@ -291,7 +291,7 @@ var gs_moto_ui = exports;
|
|||
return ip;
|
||||
}
|
||||
|
||||
function newSelectField(label, options) {
|
||||
function newSelectField(label, options, source) {
|
||||
var row = newDiv(options),
|
||||
ip = DOC.createElement('select'),
|
||||
hide = options && options.hide,
|
||||
|
|
@ -299,6 +299,7 @@ var gs_moto_ui = exports;
|
|||
lastDiv.appendChild(row);
|
||||
row.appendChild(newLabel(label));
|
||||
row.appendChild(ip);
|
||||
row.setAttribute("source", source || "tools");
|
||||
row.setAttribute("class", ["flow-row",lastGroup].join(" "));
|
||||
row.style.display = hide ? 'none' : '';
|
||||
if (options) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue