remove change buttons for a locked table

This commit is contained in:
Stephen Birarda 2014-10-17 11:24:51 -07:00
parent 7c24186baa
commit 796b519fe0

View file

@ -281,11 +281,13 @@ function makeTable(setting, setting_name, setting_value, isLocked) {
html += "<td class='data'><strong>" + col.label + "</strong></td>" // Data
})
if (!isLocked) {
if (setting.can_order) {
html += "<td class=" + Settings.REORDER_BUTTONS_CLASSES +
"><span class='glyphicon glyphicon-sort'></span></td>";
}
html += "<td class=" + Settings.ADD_DEL_BUTTONS_CLASSES + "></td></tr>"
}
// populate rows in the table from existing values
var row_num = 1
@ -319,6 +321,7 @@ function makeTable(setting, setting_name, setting_value, isLocked) {
html += "</td>"
})
if (!isLocked) {
if (setting.can_order) {
html += "<td class='" + Settings.REORDER_BUTTONS_CLASSES+
"'><span class='" + Settings.MOVE_UP_SPAN_CLASSES + "'></span><span class='" +
@ -326,6 +329,8 @@ function makeTable(setting, setting_name, setting_value, isLocked) {
}
html += "<td class='" + Settings.ADD_DEL_BUTTONS_CLASSES +
"'><span class='" + Settings.DEL_ROW_SPAN_CLASSES + "'></span></td>"
}
html += "</tr>"
row_num++