From 3e9e7e6a523b869b0da3cdc3c31212439d758e22 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 10 Jul 2020 16:34:20 -0700 Subject: [PATCH] Add more to docstring about spinner delay attribute. --- frontends/etiquette_flask/static/js/spinner.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/static/js/spinner.js b/frontends/etiquette_flask/static/js/spinner.js index 58826d6..a1b6d42 100644 --- a/frontends/etiquette_flask/static/js/spinner.js +++ b/frontends/etiquette_flask/static/js/spinner.js @@ -86,7 +86,9 @@ function init_button_with_spinner() data-spinner-delay: The number of milliseconds to wait before the spinner appears. For tasks that you expect to run very quickly, - this helps prevent a pointlessly short spinner. + this helps prevent a pointlessly short spinner. Note that the button + always becomes disabled immediately, and this delay only affects + the separate spinner element. data-holder-class: CSS class for the new span that holds the menu.