d3534fc2 by Jeff Balicki

d

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