Split css between dashboard and status page

This commit is contained in:
Joseph Cohen
2016-08-30 13:11:49 -05:00
parent a1e8806a84
commit 588ab6d404
23 changed files with 1070 additions and 73 deletions
+11 -5
View File
@@ -372,15 +372,21 @@ $(function() {
}
});
function askConfirmation(callback) {
function askConfirmation(callback, cancellCallback) {
swal({
type: "warning",
title: "Confirm your action",
text: "Are you sure you want to do this?",
buttonsStyling: false,
reverseButtons: true,
confirmButtonText: "Yes",
confirmButtonColor: "#FF6F6F",
showCancelButton: true
}, function() {
callback();
confirmButtonClass: "btn btn-lg btn-danger",
cancelButtonClass: "btn btn-lg btn-default",
showCancelButton: true,
focusCancel: true
}).then(() => {
if (_.isFunction(callback)) callback();
}, () => {
if (_.isFunction(cancellCallback)) cancellCallback();
});
}