From 4b85077735ed66a6b8a0f4567c06d3b9f3f37bb9 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 21 Aug 2023 02:17:00 +0100 Subject: [PATCH] Added close button colour to modal --- bsdialog4.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsdialog4.js b/bsdialog4.js index 437bd80..454e4b8 100644 --- a/bsdialog4.js +++ b/bsdialog4.js @@ -133,7 +133,7 @@ var BSDialog = { a.body = document.getElementsByTagName("body")[0]; a.addBackdrop(); - a.addModal(_options.ID, _options.Title, _options.Size); + a.addModal(_options.ID, _options.Title, _options.Size, _options.Colour); if (_options.URL == null) { await a.UpdateBody(_options.ID, _options.Message); @@ -263,7 +263,7 @@ var BSDialog = { a.Clear(); }); }, - addModal: function (id, title, size) { + addModal: function (id, title, size, closeColour) { var a = this; // don't allow duplicates @@ -294,7 +294,7 @@ var BSDialog = { html += ' '; html += ' '; html += ' '; html += ' ';