Guest User

Untitled

a guest
Jul 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. $(".DeleteInvoiceLine").click(function() {
  2. //Get the Id of the record
  3. var record_id = $(this).attr("id");
  4. var loc = window.location;
  5. // Ask user's confirmation
  6. if (confirm("Do you want to delete this record?")) {
  7. $.ajax({
  8. type: "POST",
  9. url: loc + "/DeleteInvoiceLineEntry",
  10. //Pass the selected record id
  11. data: "{'args': '" + record_id + "'}",
  12. contentType: "application/json; charset=utf-8",
  13. dataType: "json",
  14. success: function(msgstr) {
  15. var msg = $("#ctl00_ContentPlaceHolder1_success");
  16. msg.html(msgstr.d);
  17. msg.show();
  18.  
  19. }
  20. });
  21. }
  22. return false;
  23. });
Add Comment
Please, Sign In to add comment