Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
pdf-customizer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d3534fc2
authored
2016-06-13 12:09:58 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
d
1 parent
9d81df05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
public/files/js/interfaceGdrive.js
public/files/js/interfaceGdrive.js
View file @
d3534fc
// 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
;
...
...
Please
register
or
sign in
to post a comment