Skip to content
Snippets Groups Projects
Commit 53720a48 authored by CupCakeArmy's avatar CupCakeArmy
Browse files

Fix of empty function

parent 0c8823ec
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,11 @@ var tools = {
$('.modalCont .modal-body').html(attr.body);
$('.modalCont .modal-footer .btn-primary').html(attr.button).click(function() {
$('.modalCont').off('hide.bs.modal').modal('hide');
attr.success();
if (typeof(attr.success) == 'function')
attr.success();
});
$('.modalCont').modal('show').on('hide.bs.modal', attr.cancel);
if (typeof(attr.cancel) == 'function')
$('.modalCont').modal('show').on('hide.bs.modal', attr.cancel);
},
// Ajax loading gunction and getting the tools
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment