From d8b592ddb279b253663886d813792d3c2b48dd7f Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 8 May 2024 17:47:52 +0300 Subject: [PATCH] Remove bs-custom-file-input javascript plugin --- app/assets/javascripts/application.js | 2 -- app/assets/javascripts/bs-custom-file-input-init.js | 5 ----- package.json | 1 - yarn.lock | 5 ----- 4 files changed, 13 deletions(-) delete mode 100644 app/assets/javascripts/bs-custom-file-input-init.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index c71c0652d..20976d15a 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -16,8 +16,6 @@ //= require matomo //= require richtext //= require qs/dist/qs -//= require bs-custom-file-input -//= require bs-custom-file-input-init /* * Called as the user scrolls/zooms around to manipulate hrefs of the diff --git a/app/assets/javascripts/bs-custom-file-input-init.js b/app/assets/javascripts/bs-custom-file-input-init.js deleted file mode 100644 index 3afdac291..000000000 --- a/app/assets/javascripts/bs-custom-file-input-init.js +++ /dev/null @@ -1,5 +0,0 @@ -/* global bsCustomFileInput */ - -$(document).ready(function () { - bsCustomFileInput.init(); -}); diff --git a/package.json b/package.json index 0a9ebf0b6..7d19be0d2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "name": "openstreetmap", "private": true, "dependencies": { - "bs-custom-file-input": "^1.3.4", "jquery-simulate": "^1.0.2", "js-cookie": "^3.0.0", "leaflet": "^1.8.0", diff --git a/yarn.lock b/yarn.lock index f40f5e46b..0c3bd5c63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -134,11 +134,6 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -bs-custom-file-input@^1.3.4: - version "1.3.4" - resolved "https://registry.yarnpkg.com/bs-custom-file-input/-/bs-custom-file-input-1.3.4.tgz#c275cb8d4f1c02ba026324292509fa9a747dbda8" - integrity sha512-NBsQzTnef3OW1MvdKBbMHAYHssCd613MSeJV7z2McXznWtVMnJCy7Ckyc+PwxV6Pk16cu6YBcYWh/ZE0XWNKCA== - call-bind@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" -- 2.39.5