Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Merge() {
- $('.alert').show();
- var bDocument;
- var serviceURL = "@Url.Action("ReportingMergeBlocks", "TX")";
- // send document to controller
- $.ajax({
- type: "POST",
- url: serviceURL,
- success: successFunc,
- error: errorFunc
- });
- }
- function successFunc(data, status) {
- TXDocumentViewer.loadDocument(data, "results.tx");
- TXDocumentViewer.toggleSidebar();
- $('.alert').hide();
- }
- function errorFunc() {
- alert("Error");
- }
Add Comment
Please, Sign In to add comment