Added close button colour to modal
This commit is contained in:
parent
36d99fdbc1
commit
4b85077735
@ -133,7 +133,7 @@ var BSDialog = {
|
|||||||
a.body = document.getElementsByTagName("body")[0];
|
a.body = document.getElementsByTagName("body")[0];
|
||||||
|
|
||||||
a.addBackdrop();
|
a.addBackdrop();
|
||||||
a.addModal(_options.ID, _options.Title, _options.Size);
|
a.addModal(_options.ID, _options.Title, _options.Size, _options.Colour);
|
||||||
|
|
||||||
if (_options.URL == null) {
|
if (_options.URL == null) {
|
||||||
await a.UpdateBody(_options.ID, _options.Message);
|
await a.UpdateBody(_options.ID, _options.Message);
|
||||||
@ -263,7 +263,7 @@ var BSDialog = {
|
|||||||
a.Clear();
|
a.Clear();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
addModal: function (id, title, size) {
|
addModal: function (id, title, size, closeColour) {
|
||||||
var a = this;
|
var a = this;
|
||||||
|
|
||||||
// don't allow duplicates
|
// don't allow duplicates
|
||||||
@ -294,7 +294,7 @@ var BSDialog = {
|
|||||||
|
|
||||||
html += ' </div>';
|
html += ' </div>';
|
||||||
html += ' <div class="modal-footer">';
|
html += ' <div class="modal-footer">';
|
||||||
html += ' <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>';
|
html += ' <button type="button" class="btn btn-' + closeColour + '" data-dismiss="modal">Close</button>';
|
||||||
html += ' </div>';
|
html += ' </div>';
|
||||||
html += ' </div>';
|
html += ' </div>';
|
||||||
html += ' </div>';
|
html += ' </div>';
|
||||||
|
Loading…
Reference in New Issue
Block a user