summaryrefslogtreecommitdiffstats
path: root/provisioning-editparam-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2017-01-29 03:43:04 +0000
committerTed Trask <ttrask01@yahoo.com>2017-01-29 03:57:29 +0000
commit07027036bc14ebbb75e54f81b3134ec2b9dc0783 (patch)
tree9cc0c2844031d4cb27557cd7e2b821fb5c70997b /provisioning-editparam-html.lsp
parent2f8246dc8b9a0341ca9451f1a20ffe296e76a0be (diff)
downloadacf-provisioning-07027036bc14ebbb75e54f81b3134ec2b9dc0783.tar.bz2
acf-provisioning-07027036bc14ebbb75e54f81b3134ec2b9dc0783.tar.xz
Add notifydevices param and add it to all actions that modify devices (not yet implemented)
Modify HTML views to display confirm warning about possible reboot when notifying devices Split several get_ functions so notifydevices would not appear for new objects Cleaned up some get_ functions to use handle_clientdata Do not display filecontent in createtemplate HTML view (or write it in model) Fix exception if bulkcreatedevices called with empty list Modify 'device' provisioning_groups seq from 1 to 5 to allow notifydevices to display first
Diffstat (limited to 'provisioning-editparam-html.lsp')
-rw-r--r--provisioning-editparam-html.lsp17
1 files changed, 17 insertions, 0 deletions
diff --git a/provisioning-editparam-html.lsp b/provisioning-editparam-html.lsp
index b154766..96b76f1 100644
--- a/provisioning-editparam-html.lsp
+++ b/provisioning-editparam-html.lsp
@@ -3,6 +3,23 @@ htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
+<script type="text/javascript">
+ if (typeof jQuery == 'undefined') {
+ document.write('<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery-latest.js"><\/script>');
+ }
+</script>
+
+<script type="text/javascript">
+ $(document).ready(function() {
+ $("[id=<%= page_info.action %>]").submit(function(event){
+ if ($(this).find("#notifydevices").is(":checked")) {
+ return confirm("Are you sure you want to notify affected devices? This might cause a reboot.");
+ }
+ return true;
+ });
+ });
+</script>
+
<%
htmlviewfunctions.displaycommandresults({"editoptions"}, session, true)
htmlviewfunctions.displayitem(form, page_info)