diff --git a/static/css/main.css b/static/css/main.css new file mode 100644 index 0000000..bf84991 --- /dev/null +++ b/static/css/main.css @@ -0,0 +1,7 @@ +.popover-content .btn-group { + display: flex; +} + +.popover-content div.btn-group a { + display: block; +} \ No newline at end of file diff --git a/static/js/main.js b/static/js/main.js index ff2bb67..b28457f 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1,5 +1,17 @@ $('[data-toggle=confirmation]').confirmation({ - rootSelector: '[data-toggle=confirmation]', - //btnOkLabel: 'Si', - //btnCancelLabel: 'No' + rootSelector: '[data-toggle=confirmation]', + btnOkLabel: 'Ok', + btnCancelLabel: 'No', + 'placement': 'top', }); +var dismissAlerts = function() { + var alertElements = Array(document.querySelectorAll(".alert")); + alertElements.forEach(function(e) { + setTimeout(function() { + $(e).remove(); + }, 2500) + }); +}; +$(document).ready(function() { + dismissAlerts(); +}); \ No newline at end of file