mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 09:20:48 +02:00
remove change buttons for a locked table
This commit is contained in:
parent
7c24186baa
commit
796b519fe0
1 changed files with 14 additions and 9 deletions
|
@ -281,11 +281,13 @@ function makeTable(setting, setting_name, setting_value, isLocked) {
|
||||||
html += "<td class='data'><strong>" + col.label + "</strong></td>" // Data
|
html += "<td class='data'><strong>" + col.label + "</strong></td>" // Data
|
||||||
})
|
})
|
||||||
|
|
||||||
if (setting.can_order) {
|
if (!isLocked) {
|
||||||
html += "<td class=" + Settings.REORDER_BUTTONS_CLASSES +
|
if (setting.can_order) {
|
||||||
"><span class='glyphicon glyphicon-sort'></span></td>";
|
html += "<td class=" + Settings.REORDER_BUTTONS_CLASSES +
|
||||||
}
|
"><span class='glyphicon glyphicon-sort'></span></td>";
|
||||||
|
}
|
||||||
html += "<td class=" + Settings.ADD_DEL_BUTTONS_CLASSES + "></td></tr>"
|
html += "<td class=" + Settings.ADD_DEL_BUTTONS_CLASSES + "></td></tr>"
|
||||||
|
}
|
||||||
|
|
||||||
// populate rows in the table from existing values
|
// populate rows in the table from existing values
|
||||||
var row_num = 1
|
var row_num = 1
|
||||||
|
@ -319,13 +321,16 @@ function makeTable(setting, setting_name, setting_value, isLocked) {
|
||||||
html += "</td>"
|
html += "</td>"
|
||||||
})
|
})
|
||||||
|
|
||||||
if (setting.can_order) {
|
if (!isLocked) {
|
||||||
html += "<td class='" + Settings.REORDER_BUTTONS_CLASSES+
|
if (setting.can_order) {
|
||||||
"'><span class='" + Settings.MOVE_UP_SPAN_CLASSES + "'></span><span class='" +
|
html += "<td class='" + Settings.REORDER_BUTTONS_CLASSES+
|
||||||
Settings.MOVE_DOWN_SPAN_CLASSES + "'></span></td>"
|
"'><span class='" + Settings.MOVE_UP_SPAN_CLASSES + "'></span><span class='" +
|
||||||
}
|
Settings.MOVE_DOWN_SPAN_CLASSES + "'></span></td>"
|
||||||
|
}
|
||||||
html += "<td class='" + Settings.ADD_DEL_BUTTONS_CLASSES +
|
html += "<td class='" + Settings.ADD_DEL_BUTTONS_CLASSES +
|
||||||
"'><span class='" + Settings.DEL_ROW_SPAN_CLASSES + "'></span></td>"
|
"'><span class='" + Settings.DEL_ROW_SPAN_CLASSES + "'></span></td>"
|
||||||
|
}
|
||||||
|
|
||||||
html += "</tr>"
|
html += "</tr>"
|
||||||
|
|
||||||
row_num++
|
row_num++
|
||||||
|
|
Loading…
Reference in a new issue