mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-12 22:03:55 +02:00
Merge branch 'ui' of github.com:sethalves/hifi into permissions-grid
This commit is contained in:
commit
0e3e2ea331
1 changed files with 3 additions and 3 deletions
|
@ -982,7 +982,7 @@ function makeTable(setting, keypath, setting_value, isLocked) {
|
||||||
|
|
||||||
if (isArray && col.type === "checkbox" && col.editable) {
|
if (isArray && col.type === "checkbox" && col.editable) {
|
||||||
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>"
|
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>"
|
||||||
+ "<input type='checkbox' class='form-control toggle-checkbox table-checkbox' "
|
+ "<input type='checkbox' class='form-control toggle-checkbox table-checkbox' data-size='mini' "
|
||||||
+ "name='" + colName + "'" + (colValue ? " checked" : "") + " /></td>";
|
+ "name='" + colName + "'" + (colValue ? " checked" : "") + " /></td>";
|
||||||
} else {
|
} else {
|
||||||
// Use a hidden input so that the values are posted.
|
// Use a hidden input so that the values are posted.
|
||||||
|
@ -1037,8 +1037,8 @@ function makeTableInputs(setting) {
|
||||||
_.each(setting.columns, function(col) {
|
_.each(setting.columns, function(col) {
|
||||||
if (col.type === "checkbox") {
|
if (col.type === "checkbox") {
|
||||||
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>"
|
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>"
|
||||||
+ "<input type='checkbox' class='form-control toggle-checkbox' name='" + col.name + "'"
|
+ "<input type='checkbox' class='form-control toggle-checkbox' data-size='mini' "
|
||||||
+ (col.default ? " checked" : "") + "/></td>";
|
+ "name='" + col.name + "'" + (col.default ? " checked" : "") + "/></td>";
|
||||||
} else {
|
} else {
|
||||||
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>\
|
html += "<td class='" + Settings.DATA_COL_CLASS + "'name='" + col.name + "'>\
|
||||||
<input type='text' class='form-control' placeholder='" + (col.placeholder ? col.placeholder : "") + "'\
|
<input type='text' class='form-control' placeholder='" + (col.placeholder ? col.placeholder : "") + "'\
|
||||||
|
|
Loading…
Reference in a new issue