[Rt-commit] rt branch, 4.4/dropzone-file-uploader, repushed
? sunnavy
sunnavy at bestpractical.com
Thu Sep 24 08:37:01 EDT 2015
The branch 4.4/dropzone-file-uploader was deleted and repushed:
was e98f261cb657ae4718a49031c6ea427a6469eb26
now 8f0a3db24f91e12b99c21c19179df88187aa3972
1: 677f024 = 1: 677f024 ajaxify the function of attachments deletion
2: e98f261 ! 2: 8f0a3db initial dropzone file uploader support
@@ -2226,6 +2226,7 @@
+ url: '/Helpers/Upload/Add?Token=' + jQuery('#attach-dropzone').closest('form').find('input[name=Token]').val(),
+ paramName: "Attach",
+ dictDefaultMessage: <% loc("Drop files here or click to attach") |n,j %>,
++ maxFilesize: 10000,
+ previewTemplate: '' +
+ '<div class="dz-preview dz-file-preview">' +
+ ' <div class="dz-remove-mark pointer-events" data-dz-remove>' +
@@ -2243,7 +2244,7 @@
+ ' </g>' +
+ ' </svg>' +
+ ' </div>' +
-+ ' <div class="dz-image"><img data-dz-thumbnail /></div>' +
++ ' <div class="dz-image pointer-events"><img data-dz-thumbnail /></div>' +
+ ' <div class="dz-details">' +
+ ' <div class="dz-filename"><span data-dz-name></span></div>' +
+ ' </div>' +
@@ -2293,6 +2294,14 @@
+ });
+ attachDropzone.on('reset', function() {
+ jQuery('#attach-dropzone').removeClass('scaled');
++ });
++ var submit_input = jQuery('#attach-dropzone').closest('form').find('div.submit :submit:visible:last');
++ var submit_input_label = submit_input.attr('value');
++ attachDropzone.on('addedfile', function() {
++ submit_input.prop('disabled', true).attr('value', <% loc('Waiting For File Uploading') |n,j %>);
++ });
++ attachDropzone.on('queuecomplete', function() {
++ submit_input.prop('disabled', false).attr('value', submit_input_label);
+ });
+});
+</script>
@@ -2723,6 +2732,10 @@
+ cursor: pointer;
+}
+
++.dropzone .dz-preview .dz-remove-mark svg path {
++ cursor: pointer;
++}
++
+.dropzone {
+ background: #eee;
+ border: none !important;
More information about the rt-commit
mailing list