disable unused JS

This commit is contained in:
Christoph Haas 2025-05-11 21:26:02 +02:00
parent 98d47c060f
commit d4196505b8
2 changed files with 12 additions and 12 deletions

View file

@ -70,9 +70,9 @@
/ #metadata is the anchor for this sticky container.
= render(partial: 'details_rightbox', locals: {pkg: @package})
javascript:
// Where to send POST requests for uploads
let ajax_upload_url = '#{{upload_receive_json_path}}';
/ javascript:
/ // Where to send POST requests for uploads
/ let ajax_upload_url = '#{{upload_receive_json_path}}';
// Where to go to after a successful image upload
let after_upload_url = '#{{package_path(@package)}}';
/ // Where to go to after a successful image upload
/ let after_upload_url = '#{{package_path(@package)}}';

View file

@ -64,11 +64,11 @@ h1 = "Upload screenshots for #{@package.name}"
' from a shell using after setting "export LANG=C".
li can be pasted here from your clipboard (Ctrl-V)
javascript:
// todo: use data attributes to pass this information to javascript
// https://chat.deepseek.com/a/chat/s/41a4350b-7799-42bf-aec9-3c205b22ab24
// Where to send POST requests for uploads
let ajax_upload_url = '#{{upload_receive_json_path}}';
/ javascript:
/ // todo: use data attributes to pass this information to javascript
/ // https://chat.deepseek.com/a/chat/s/41a4350b-7799-42bf-aec9-3c205b22ab24
/ // Where to send POST requests for uploads
/ let ajax_upload_url = '#{{upload_receive_json_path}}';
// Where to go to after a successful image upload
let after_upload_url = '#{{package_path(@package)}}';
/ // Where to go to after a successful image upload
/ let after_upload_url = '#{{package_path(@package)}}';