From: Alexander Moisseev Date: Fri, 9 May 2025 07:03:34 +0000 (+0300) Subject: [Minor] Remove unused cleanTextUpload helper X-Git-Tag: 3.12.0~28^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd809b12899eeef2390080ef2b9185c5936e75c3;p=thirdparty%2Frspamd.git [Minor] Remove unused cleanTextUpload helper --- diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index 2ad3153841..8ae00f20ea 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -32,10 +32,6 @@ define(["jquery", "app/common", "app/libft"], let filesIdx = null; let scanTextHeaders = {}; - function cleanTextUpload(source) { - $("#" + source + "TextSource").val(""); - } - function uploadText(data, source, headers, method = "POST") { const deferred = new $.Deferred(); @@ -71,7 +67,6 @@ define(["jquery", "app/common", "app/libft"], method: method, headers: headers, success: function (json, jqXHR) { - cleanTextUpload(source); common.alertMessage("alert-success", "Data successfully uploaded"); if (jqXHR.status !== 200) { common.alertMessage("alert-info", jqXHR.statusText);