d3534fc2 by Jeff Balicki

d

1 parent 9d81df05
1 1
2 2
3 // var pluginUrl = "http://localhost:8888/Forms"; 3 // var pluginUrl = "http://localhost:8888/Forms";
4 // var pdf_customizer = "http://localhost:8888/pdf-customizer/public"; 4 // var pdf_customizer = "http://localhost:8888/pdf-customizer/public";
5 5
6 var pluginUrl = "http://contact.gotenzing.com"; 6 var pluginUrl = "http://contact.gotenzing.com";
7 var pdf_customizer = "http://pdf-customizer.synapsus.co"; 7 var pdf_customizer = "http://pdf-customizer.synapsus.co";/
8
9 8
10 function getAuth() { 9 function getAuth() {
11 10
...@@ -292,8 +291,14 @@ ...@@ -292,8 +291,14 @@
292 291
293 async: true, 292 async: true,
294 success: function(data) { 293 success: function(data) {
295 document.getElementById('contentArea').innerHTML = '<a href="' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '" download="' + json[0].file + '" >Download Here</a>'; 294 var strVar2 =""
296 }, 295 strVar2 += " <div class=\"callout primary\"><div class=\"row column\"><h1>Welcome to Synapsus Online PDF Editor<\/h1>";
296 strVar2 += "<p class=\"lead\">Please download your file below or return <a href=\"#\" onclick=\"location.reload();\">back to the list</a><\/p>";
297 strVar2 += " <\/div><\/div><div class=\"row small-up-2 medium-up-3 large-up-3\">";
298 strVar2 += "<div class=\"column\">" + '<a href="' + pdf_customizer + '/fileentry/getPDF/' + json[0].folder + '/new_' + json[0].file + '" download="' + json[0].file + '" ><i class="fa fa-cloud-download fa-5x"></i></br>Download Here</a>';
299 + "<\/div><\/div>";
300
301 document.getElementById('contentArea').innerHTML = strVar2 },
297 error: function(xhr, ajaxOptions, thrownError) { //Add these parameters to display the required response 302 error: function(xhr, ajaxOptions, thrownError) { //Add these parameters to display the required response
298 alert(xhr.status); 303 alert(xhr.status);
299 document.getElementById('contentArea').innerHTML = xhr.responseText; 304 document.getElementById('contentArea').innerHTML = xhr.responseText;
......