From 77d6d57f9927ede0adef4e1e3420132ac2ebfbd2 Mon Sep 17 00:00:00 2001
From: Skriv <skrivelese@gmail.com>
Date: Wed, 27 Mar 2019 20:51:09 +0100
Subject: [PATCH] cleaning textboxJS

---
 src/js/textboxJS.js | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/js/textboxJS.js b/src/js/textboxJS.js
index d0798dbd0c6..cb5213593f7 100644
--- a/src/js/textboxJS.js
+++ b/src/js/textboxJS.js
@@ -1,27 +1,27 @@
 /* eslint-disable no-undef */
 /* Nicked off greyelf, works for replace textboxes */
 window.setReplaceTextboxMaxLength = function (storyVarName, maxLength) {
-	var textboxId = '#textbox-' + Util.slugify(storyVarName);
+	const textboxId = `#textbox-${ Util.slugify(storyVarName)}`;
 	$(textboxId)
-		.attr('maxlength', maxLength)
+		.attr("maxlength", maxLength)
 		.css({
-			'min-width' : 'initial',
-			width : maxLength + 'em',
-			padding : '3px 2px'
+			"min-width": "initial",
+			"width": `${maxLength }em`,
+			"padding": "3px 2px"
 		});
 };
 
 /* Nicked off TheMadExile, works for non-replace textboxes */
 window.setTextboxMaxLength = function (storyVarName, maxLength) {
-	var textboxId = '#textbox-' + Util.slugify(storyVarName);
-	postdisplay[textboxId + '-maxlength'] = function (taskName) {
+	const textboxId = `#textbox-${ Util.slugify(storyVarName)}`;
+	postdisplay[`${textboxId }-maxlength`] = function (taskName) {
 		delete postdisplay[taskName];
 		$(textboxId)
-			.attr('maxlength', maxLength)
+			.attr("maxlength", maxLength)
 			.css({
-				'min-width' : 'initial',
-				width : maxLength + 'em',
-				padding : '3px 2px'
+				"min-width": "initial",
+				"width": `${maxLength }em`,
+				"padding": "3px 2px"
 			});
 	};
 };
-- 
GitLab