From 796b519fe0c5d4d765251826df6be15553dd6f58 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 17 Oct 2014 11:24:51 -0700 Subject: [PATCH] remove change buttons for a locked table --- domain-server/resources/web/js/settings.js | 23 +++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/domain-server/resources/web/js/settings.js b/domain-server/resources/web/js/settings.js index 9aa4b94895..0eb5642a7c 100644 --- a/domain-server/resources/web/js/settings.js +++ b/domain-server/resources/web/js/settings.js @@ -281,11 +281,13 @@ function makeTable(setting, setting_name, setting_value, isLocked) { html += "" + col.label + "" // Data }) - if (setting.can_order) { - html += ""; - } + if (!isLocked) { + if (setting.can_order) { + html += ""; + } html += "" + } // populate rows in the table from existing values var row_num = 1 @@ -319,13 +321,16 @@ function makeTable(setting, setting_name, setting_value, isLocked) { html += "" }) - if (setting.can_order) { - html += "" - } + if (!isLocked) { + if (setting.can_order) { + html += "" + } html += "" + } + html += "" row_num++