Add more docstring to button_with_confirm data-onclick parameter.

This commit is contained in:
voussoir 2020-06-17 14:09:02 -07:00
parent d2d8a69d39
commit e420d92f6c

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