summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/wwwroot
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-22 00:44:13 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-22 00:44:13 -0500
commit082f285bc7ce156ad0750bb48d46ed65a2e4aedb (patch)
tree7dc63890caf6eee699590a67013d634e213fabe3 /src/SMAPI.Web/wwwroot
parentc1b15fb3725661ebfd8e03cec08343ae49e5d6da (diff)
downloadSMAPI-082f285bc7ce156ad0750bb48d46ed65a2e4aedb.tar.gz
SMAPI-082f285bc7ce156ad0750bb48d46ed65a2e4aedb.tar.bz2
SMAPI-082f285bc7ce156ad0750bb48d46ed65a2e4aedb.zip
streamline local environments, update technical docs & privacy page
Diffstat (limited to 'src/SMAPI.Web/wwwroot')
-rw-r--r--src/SMAPI.Web/wwwroot/Content/js/json-validator.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI.Web/wwwroot/Content/js/json-validator.js b/src/SMAPI.Web/wwwroot/Content/js/json-validator.js
index 401efbee..72b8192b 100644
--- a/src/SMAPI.Web/wwwroot/Content/js/json-validator.js
+++ b/src/SMAPI.Web/wwwroot/Content/js/json-validator.js
@@ -71,9 +71,9 @@ smapi.LineNumberRange = function (maxLines) {
/**
* UI logic for the JSON validator page.
* @param {string} urlFormat The URL format for a file, with $schemaName and $id placeholders.
- * @param {string} pasteID The Pastebin paste ID for the content being viewed, if any.
+ * @param {string} fileId The file ID for the content being viewed, if any.
*/
-smapi.jsonValidator = function (urlFormat, pasteID) {
+smapi.jsonValidator = function (urlFormat, fileId) {
/**
* The original content element.
*/
@@ -138,7 +138,7 @@ smapi.jsonValidator = function (urlFormat, pasteID) {
// change format
$("#output #format").on("change", function() {
var schemaName = $(this).val();
- location.href = urlFormat.replace("$schemaName", schemaName).replace("$id", pasteID);
+ location.href = urlFormat.replace("$schemaName", schemaName).replace("$id", fileId);
});
// upload form