commit
Showing
1 changed file
with
5 additions
and
11 deletions
| 1 | var pluginUrl = "http://localhost:8888/Forms"; | 1 | // var pluginUrl = "http://localhost:8888/Forms"; |
| 2 | var pdf_customizer = "http://localhost:8888/pdf-customizer/public"; | 2 | // var pdf_customizer = "http://localhost:8888/pdf-customizer/public"; |
| 3 | 3 | ||
| 4 | 4 | ||
| 5 | //var pluginUrl = "http://contact.gotenzing.com"; | 5 | var pluginUrl = "http://contact.gotenzing.com"; |
| 6 | //var pdf_customizer = "http://pdf-customizer.synapsus.co"; | 6 | var pdf_customizer = "http://pdf-customizer.synapsus.co"; |
| 7 | 7 | ||
| 8 | function getAuth() { | 8 | function getAuth() { |
| 9 | jQuery(document).ready(function($) { | 9 | jQuery(document).ready(function($) { |
| ... | @@ -95,13 +95,7 @@ function ShowBox(pheight, pwidth, up, right, height, width, count, example) { | ... | @@ -95,13 +95,7 @@ function ShowBox(pheight, pwidth, up, right, height, width, count, example) { |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | 97 | ||
| 98 | function SetFocus(i) { | ||
| 99 | jQuery(document).ready(function($) { | ||
| 100 | $("label#focusButton" + i).css({"border": "2px solid #F7A800 !important"}); | ||
| 101 | console.log($("label#focusButton" + i)); | ||
| 102 | 98 | ||
| 103 | }); | ||
| 104 | } | ||
| 105 | 99 | ||
| 106 | 100 | ||
| 107 | function HideBox() { | 101 | function HideBox() { |
| ... | @@ -217,7 +211,7 @@ function changePdfOptions(json) { | ... | @@ -217,7 +211,7 @@ function changePdfOptions(json) { |
| 217 | pdfChange += '<span id="span' + i + '">' + json[i].tips + '</span><br/>'; | 211 | pdfChange += '<span id="span' + i + '">' + json[i].tips + '</span><br/>'; |
| 218 | } | 212 | } |
| 219 | if (json[i].change_type == "img") { | 213 | if (json[i].change_type == "img") { |
| 220 | pdfChange += json[i].names + ':<label id="focusButton' + i + '" class="custom-file-input" tabindex="0"><input tabindex="-1" onfocusout="HideBox()" onfocus="SetFocus(' + i + '), ShowBox(' + json[0].pheight + ',' + json[0].pwidth + ',' + json[i].locationUp + ',' + json[i].locationRight + ',' + json[i].height + ',' + json[i].width + ',' + i + ',\'' + example + '\')" class="fileupload upload required" id="changescontent[' + i + ']" type="file" name="content[' + i + ']" ><span class="file-button"><span class="file-name file-button"></span><strong>Browse</strong></span></label>'; | 214 | pdfChange += json[i].names + ':<label id="focusButton' + i + '" class="custom-file-input" tabindex="0"><input tabindex="-1" onfocusout="HideBox()" onfocus=" ShowBox(' + json[0].pheight + ',' + json[0].pwidth + ',' + json[i].locationUp + ',' + json[i].locationRight + ',' + json[i].height + ',' + json[i].width + ',' + i + ',\'' + example + '\')" class="fileupload upload required" id="changescontent[' + i + ']" type="file" name="content[' + i + ']" ><span class="file-button"><span class="file-name file-button"></span><strong>Browse</strong></span></label>'; |
| 221 | pdfChange += '<span id="span' + i + '">' + json[i].tips + '</span><br/>'; | 215 | pdfChange += '<span id="span' + i + '">' + json[i].tips + '</span><br/>'; |
| 222 | } | 216 | } |
| 223 | if (json[i].change_type == "date") { | 217 | if (json[i].change_type == "date") { | ... | ... |
-
Please register or sign in to post a comment