diff options
author | Ted Trask <ttrask01@yahoo.com> | 2017-01-29 03:43:04 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2017-01-29 03:57:29 +0000 |
commit | 07027036bc14ebbb75e54f81b3134ec2b9dc0783 (patch) | |
tree | 9cc0c2844031d4cb27557cd7e2b821fb5c70997b /provisioning-editdeviceparams-html.lsp | |
parent | 2f8246dc8b9a0341ca9451f1a20ffe296e76a0be (diff) | |
download | acf-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-editdeviceparams-html.lsp')
-rw-r--r-- | provisioning-editdeviceparams-html.lsp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/provisioning-editdeviceparams-html.lsp b/provisioning-editdeviceparams-html.lsp index 9229264..2ee0374 100644 --- a/provisioning-editdeviceparams-html.lsp +++ b/provisioning-editdeviceparams-html.lsp @@ -91,6 +91,12 @@ end $(document).ready(function() { $(".deletedevice").click(function(){ return confirm("Are you sure you want to delete this device?")}); + $("[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; + }); $(".groupdefaultoverride").siblings().select("contains('Default:')").addClass("error"); hideunuseddivs(); }); |