From df6298eeb68047a56f5ae968c9bc5ba948cc9c5c 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 8f67a542b..5e9d0bd6f 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1521,6 +1521,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) {