summaryrefslogtreecommitdiffstats
path: root/provisioning-editdeviceparams-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2017-02-22 21:56:38 +0000
committerTed Trask <ttrask01@yahoo.com>2017-02-22 22:46:38 +0000
commita4aa3978538be92a9a3b21468ee76307a40a3d03 (patch)
treef5edcd5521f5519b6dbad593b231fce321f20cb6 /provisioning-editdeviceparams-html.lsp
parent1709d27afda0c4d7aa5a9330701d080d5a2260e1 (diff)
downloadacf-provisioning-a4aa3978538be92a9a3b21468ee76307a40a3d03.tar.bz2
acf-provisioning-a4aa3978538be92a9a3b21468ee76307a40a3d03.tar.xz
Add viewdeviceparams action and modify roles to add USER
(cherry picked from commit ea3cacb09a7566b59411fad00f86f170408027e3)
Diffstat (limited to 'provisioning-editdeviceparams-html.lsp')
-rw-r--r--provisioning-editdeviceparams-html.lsp2
1 files changed, 2 insertions, 0 deletions
diff --git a/provisioning-editdeviceparams-html.lsp b/provisioning-editdeviceparams-html.lsp
index 9229264..c0d1de8 100644
--- a/provisioning-editdeviceparams-html.lsp
+++ b/provisioning-editdeviceparams-html.lsp
@@ -76,11 +76,13 @@ end
if ((currentsection == previoussection) && (currentnumber != previousnumber) && (0 == $(this).find(".defaultoverride").length) && (0 == $(this).find(".groupdefaultoverride").length) && ($(this).children().first().text().match(currentnumber))) {
$(this).toggle();
+ <% if page_info.action ~= "viewdeviceparams" then %>
$('<a href="javascript:;" class="'+id+'"><img src="<%= html.html_escape(page_info.wwwprefix..page_info.staticdir) %>tango/16x16/actions/list-add.png"> Add '+$(this).children().first().text()+'</a>').insertAfter($(this)).click(showsection);
if ($(this).prev("a").length == 1) {
// If the previous sibling is also an Add link, hide this one
$(this).next().toggle();
}
+ <% end %>
}
previoussection = currentsection;