From f2aa531f27335d5bee042e5f009d301a55b3f64f Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 13 Mar 2017 18:18:17 +0100 Subject: [PATCH] apply styles to confirm buttons if provided --- www/common/cryptpad-common.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 1f2941f34..f1c321f19 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1520,6 +1520,11 @@ define([ cb(false); stopListening(keyHandler); }); + + window.setTimeout(function () { + if (opt.okClass) { findOKButton().addClass(opt.okClass); } + if (opt.cancelClass) { findCancelButton().addClass(opt.cancelClass); } + }, 0); }; common.log = function (msg) {