"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public/javascripts/attachments.js" between
redmine-4.1.0.tar.gz and redmine-4.1.1.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

attachments.js  (redmine-4.1.0):attachments.js  (redmine-4.1.1)
skipping to change at line 188 skipping to change at line 188
if ($.inArray('Files', e.dataTransfer.types) > -1) { if ($.inArray('Files', e.dataTransfer.types) > -1) {
handleFileDropEvent.target = e.target; handleFileDropEvent.target = e.target;
uploadAndAttachFiles(e.dataTransfer.files, $('input:file.filedrop').first()) ; uploadAndAttachFiles(e.dataTransfer.files, $('input:file.filedrop').first()) ;
} }
} }
handleFileDropEvent.target = ''; handleFileDropEvent.target = '';
function dragOverHandler(e) { function dragOverHandler(e) {
$(this).addClass('fileover'); $(this).addClass('fileover');
blockEventPropagation(e); blockEventPropagation(e);
e.dataTransfer.dropEffect = 'copy';
} }
function dragOutHandler(e) { function dragOutHandler(e) {
$(this).removeClass('fileover'); $(this).removeClass('fileover');
blockEventPropagation(e); blockEventPropagation(e);
} }
function setupFileDrop() { function setupFileDrop() {
if (window.File && window.FileList && window.ProgressEvent && window.FormData) { if (window.File && window.FileList && window.ProgressEvent && window.FormData) {
$.event.fixHooks.dragover = { props: [ 'dataTransfer' ] };
$.event.fixHooks.drop = { props: [ 'dataTransfer' ] }; $.event.fixHooks.drop = { props: [ 'dataTransfer' ] };
$('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(func tion() { $('form div.box:not(.filedroplistner)').has('input:file.filedrop').each(func tion() {
$(this).on({ $(this).on({
dragover: dragOverHandler, dragover: dragOverHandler,
dragleave: dragOutHandler, dragleave: dragOutHandler,
drop: handleFileDropEvent, drop: handleFileDropEvent,
paste: copyImageFromClipboard paste: copyImageFromClipboard
}).addClass('filedroplistner'); }).addClass('filedroplistner');
}); });
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)