From 8114393f614071ad7085979514bafdabe66420d6 Mon Sep 17 00:00:00 2001 From: RostiMelk Date: Wed, 1 Apr 2020 00:18:45 +0200 Subject: [PATCH] Fixed typo/syntax error in gallery field --- scripts/fields.js | 10 +++++----- scripts/scripts.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/fields.js b/scripts/fields.js index bf9800c..d41b53f 100644 --- a/scripts/fields.js +++ b/scripts/fields.js @@ -49,13 +49,13 @@ function acf_field(appendCode, fieldName, typeOfField, returnType, seniority, pl case "file": switch (returnType) { case "array": - var fieldCode = ";\n" + "\t\">\n" + ""; + var fieldCode = ";\n" + "\t\">\n" + ""; break; case "url": var fieldCode = "\n" + "\t'>Download File\n" + "\n"; break; case "id": - var fieldCode = "\n" + "\t\">Download File\n" + ""; + var fieldCode = "\n" + "\t\">Download File\n" + ""; break; default: fieldError(); @@ -73,7 +73,7 @@ function acf_field(appendCode, fieldName, typeOfField, returnType, seniority, pl case "gallery": switch (returnType) { case "array": - var fieldCode = "\n" + "\t\n" + "\t\t\">\n" + "\t\t\t\" alt=\"\"/>\n" + "\t\t\n" + "\t\n" + ""; + var fieldCode = "\n" + "\t\n" + "\t\t\">\n" + "\t\t\t\" alt=\"\"/>\n" + "\t\t\n" + "\t\n" + ""; break; case "url": var fieldCode = ""; @@ -126,7 +126,7 @@ function acf_field(appendCode, fieldName, typeOfField, returnType, seniority, pl break; case "page_link": - var fieldCode = "\n" + "\t\n" + "\t\t\" >\n" + "\t\n" + ""; + var fieldCode = "\n" + "\t\n" + "\t\t\" >\n" + "\t\n" + ""; break; case "relationship": @@ -232,4 +232,4 @@ function acf_field(appendCode, fieldName, typeOfField, returnType, seniority, pl if(!appendCode) { copyCodeToClipboard(fieldCode, subFields); } -} +} \ No newline at end of file diff --git a/scripts/scripts.js b/scripts/scripts.js index f7c43de..5421e98 100755 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -197,4 +197,4 @@ function copyFieldCode() { // Clear session storage sessionStorage.removeItem("fieldcode"); }); -} +} \ No newline at end of file