From 7d3a9fe03e3a15e119fb383edadc6bf2c9e9f53b Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 4 Sep 2020 14:50:30 -0700 Subject: [PATCH] Add explanation of data-prompt-class et al. I think I left these blank because I felt they should be obvious. But I'd rather have it explicit. --- frontends/ycdl_flask/static/js/common.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontends/ycdl_flask/static/js/common.js b/frontends/ycdl_flask/static/js/common.js index 8226200..aaf6fff 100644 --- a/frontends/ycdl_flask/static/js/common.js +++ b/frontends/ycdl_flask/static/js/common.js @@ -192,16 +192,19 @@ function init_button_with_confirm() Optional: data-prompt: Text that appears next to the confirm button. Default is "Are you sure?". - data-prompt-class + + data-prompt-class: CSS class for the prompt span. data-confirm: Text inside the confirm button. Default is to inherit the original button's text. + data-confirm-class: CSS class for the confirm button. Default is to inheret all classes of the original button, except for "button_with_confirm" of course. data-cancel: Text inside the cancel button. Default is "Cancel". - data-cancel-class + + data-cancel-class: CSS class for the cancel button. data-holder-class: CSS class for the new span that holds the menu. */