Add more docstring to button_with_confirm data-onclick parameter.
This commit is contained in:
parent
a56b5274c9
commit
8c50700290
1 changed files with 4 additions and 0 deletions
|
@ -168,6 +168,10 @@ function init_button_with_confirm()
|
|||
|
||||
Required:
|
||||
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:
|
||||
data-prompt: Text that appears next to the confirm button. Default is
|
||||
|
|
Loading…
Reference in a new issue