Código
Código
$(function(){ URL_GET_DATATABLE = BASE_URL+'inventory/provider/datatable'; $('#example').DataTable({ "lengthChange": false, ajax: { url: URL_GET_DATATABLE, type: 'POST' } }); $('#add_item').on('click',function(){ BootstrapDialog.show({ message: $("<form class='form-inline' id='providerForm'><div class='form-group'><label class='full_name'>Full name</label> <input type='text' class='_full_name form-control' name='full_name'></div><div class='form-group'><label class='phone' for='phone'>Phone</label> <input type='text' class='_phone form-control'></div><div class='form-group'><label class='email' for='email'>E-mail</label> <input type='text' class='_email form-control'></div><div class='form-group'><label class='rfc' for='email'>Rfc</label> <input type='text' class='_rfc form-control'></div><div class='form-group'><label class='address' for='address'>Address</label> <input type='text' class='_address form-control'></div>"), closable: true, closeByBackdrop: false, closeByKeyboard: false, buttons: [{ id: 'submit', icon: 'glyphicon glyphicon-send', label: 'Send ajax request', cssClass: 'btn-primary', autospin: true, action: function (dialogRef) { dialogRef.enableButtons(false); dialogRef.setClosable(false); } }] }); }); });