Skip to content

Commit

Permalink
Enable image pasting in report issue form
Browse files Browse the repository at this point in the history
  • Loading branch information
syncguru authored and vboctor committed Aug 4, 2019
1 parent df8bc9e commit 9f026b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common.js
Expand Up @@ -411,8 +411,8 @@ $(document).ready( function() {
var autoUpload = $(this).hasClass('auto-dropzone');
var zoneObj = enableDropzone( classPrefix, autoUpload );
if( zoneObj ) {
/* Attach image paste handler to add-note form */
$( '#bugnoteadd' ).bind( 'paste', function( event ) {
/* Attach image paste handler to report-bug & add-note forms */
$( '#bugnoteadd, #report_bug_form' ).bind( 'paste', function( event ) {
var items = ( event.clipboardData || event.originalEvent.clipboardData ).items;
for( index in items ) {
var item = items[index];
Expand Down

0 comments on commit 9f026b9

Please sign in to comment.