Skip to content

Commit

Permalink
move jquery.fileupload.js to vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Jan 13, 2025
1 parent 472b60e commit 58227e3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,3 @@ group :development do
gem 'web-console'
gem 'listen'
end

2 changes: 0 additions & 2 deletions app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
//= link_tree ../images
//= link_directory ../stylesheets .css
//= link_tree ../../javascript .js
//= link_tree ../../../vendor/javascript .js
1 change: 1 addition & 0 deletions app/javascript/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ $(function() {
if ($("#data_request_participants_count").val() > 1) {
$("#participants_names_box").show();
}

$("#data_request_participants_count").change(function() {
if ($("#data_request_participants_count").val() > 1) {
$("#participants_names_box").show();
Expand Down
6 changes: 3 additions & 3 deletions config/importmap.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Pin npm packages by running ./bin/importmap

pin "application"
pin "jquery", to: "https://code.jquery.com/jquery-3.6.0.min.js"
pin "jquery-ui", to: "https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
pin "@rails/ujs", to: "https://cdn.skypack.dev/@rails/ujs", preload: true
pin "jquery", to: "https://code.jquery.com/jquery-3.6.0.min.js", preload: true
pin "jquery-ui", to: "https://code.jquery.com/ui/1.12.1/jquery-ui.min.js", preload: true
pin "jquery.fileupload", to: "jquery.fileupload.js"
pin "@rails/ujs", to: "https://cdn.skypack.dev/@rails/ujs"
File renamed without changes.

0 comments on commit 58227e3

Please sign in to comment.