Add more docstring to button_with_confirm data-onclick parameter.

master
voussoir 2020-06-17 14:08:03 -07:00
parent a56b5274c9
commit 8c50700290
1 changed files with 4 additions and 0 deletions

View File

@ -168,6 +168,10 @@ function init_button_with_confirm()
Required: Required:
data-onclick: String that would normally be the button's onclick. data-onclick: String that would normally be the button's onclick.
This is done so that if the button_with_confirm fails to initialize,
the button will be non-operational as opposed to being operational
but with no confirmation. For dangerous actions I think this is a
worthwhile move though it could lead to feature downtime.
Optional: Optional:
data-prompt: Text that appears next to the confirm button. Default is data-prompt: Text that appears next to the confirm button. Default is