Guest User

Untitled

a guest
Jun 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. function Merge() {
  2.  
  3. $('.alert').show();
  4.  
  5. var bDocument;
  6. var serviceURL = "@Url.Action("ReportingMergeBlocks", "TX")";
  7.  
  8. // send document to controller
  9. $.ajax({
  10. type: "POST",
  11. url: serviceURL,
  12. success: successFunc,
  13. error: errorFunc
  14. });
  15.  
  16. }
  17.  
  18. function successFunc(data, status) {
  19. TXDocumentViewer.loadDocument(data, "results.tx");
  20. TXDocumentViewer.toggleSidebar();
  21.  
  22. $('.alert').hide();
  23. }
  24.  
  25. function errorFunc() {
  26. alert("Error");
  27. }
Add Comment
Please, Sign In to add comment