lab
This commit is contained in:
parent
7cd9c68a10
commit
36984ff1d4
20 changed files with 321 additions and 391 deletions
|
|
@ -66,6 +66,8 @@
|
|||
= render(partial: 'details_rightbox', locals: {pkg: @package})
|
||||
|
||||
javascript:
|
||||
import {upload_paste_handler} from 'aplication';
|
||||
|
||||
// Handle Ctrl-V to paste an image directly
|
||||
document.onpaste = upload_paste_handler;
|
||||
|
||||
|
|
|
|||
|
|
@ -64,16 +64,18 @@ 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:
|
||||
/ // Hide the submit button unless images are selected for upload
|
||||
/ // $(document).ready(upload_form_init);
|
||||
/ import upload_form_init from '../../assets/javascripts/upload.js';
|
||||
/ document.addEventListener('DOMContentLoaded', upload_form_init);
|
||||
|
||||
javascript:
|
||||
// Hide the submit button unless images are selected for upload
|
||||
$(document).ready(upload_form_init);
|
||||
/ // import upload_paste_handler from '../../assets/javascripts/debshots.js';
|
||||
/ // Handle Ctrl-V to paste an image directly
|
||||
/ document.onpaste = upload_paste_handler;
|
||||
|
||||
// Handle Ctrl-V to paste an image directly
|
||||
document.onpaste = upload_paste_handler;
|
||||
/ // Where to send POST requests for uploads
|
||||
/ var ajax_upload_url = '#{{upload_receive_json_path}}';
|
||||
|
||||
// Where to send POST requests for uploads
|
||||
var ajax_upload_url = '#{{upload_receive_json_path}}';
|
||||
|
||||
// Where to go to after a successful image upload
|
||||
var after_upload_url = '#{{package_path(@package)}}';
|
||||
/ // Where to go to after a successful image upload
|
||||
/ var after_upload_url = '#{{package_path(@package)}}';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue