Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var table = $('#orders-table');
- //var iframe = $('#iframe');
- table.on('click', 'button', function(ev){
- var orderId = $(ev.target).attr('data-order-id');
- //window.open('Order_Summary.php','_blank');
- swal({ title: "Are you sure?", text: orderId +"You will not be able to recover this imaginary file!",
- type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55",
- confirmButtonText: "Yes, delete it!", closeOnConfirm: false }, function(){
- $.get( "ViewOrdApproval2.php", { order_id: orderId} ) .done(function( data ) {
- swal("Updated", "Your Order update has been done successfully", "success");
- console.log (orderId);
- });
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement