Commit 9d52255d authored by Ad Schellevis's avatar Ad Schellevis

(mvc) add wrapper around bootstrap dialog for remove item dialog

parent f4055efd
...@@ -232,3 +232,22 @@ function initFormAdvancedUI() { ...@@ -232,3 +232,22 @@ function initFormAdvancedUI() {
} }
}); });
} }
/**
* standard remove items dialog, wrapper around BootstrapDialog
*/
function stdDialogRemoveItem(message, callback) {
BootstrapDialog.confirm({
title: 'Remove',
message: message,
type:BootstrapDialog.TYPE_WARNING,
btnCancelLabel: 'Cancel',
btnOKLabel: 'Yes',
btnOKClass: 'btn-primary',
callback: function(result) {
if(result) {
callback();
}
}
});
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment