Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <td class="table-icon text-center">
- <a class="btn btn-sm btn-delete" onclick="deleteRow(ctrl); return false;">
- <span class="icon icon-bin" aria-hidden="true"></span>
- </a>
- </td>
- var tmprow = null;
- function deleteRow(ctrl) {
- tmprow = $(ctrl).closest('tr');
- bootbox.confirm({
- message: "Are you sure you want to delete this objective?",
- buttons: {
- confirm: {
- label: 'Delete',
- className: 'btn-danger'
- },
- cancel: {
- label: 'Cancel',
- className: 'btn-default'
- }
- },
- callback: function(result) {
- if (result == true) {
- $(tmprow).remove();
- }
- tmprow = null;
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement