[Rt-commit] rt branch, 4.4/dropzone-file-uploader, repushed
? sunnavy
sunnavy at bestpractical.com
Wed Sep 23 09:36:46 EDT 2015
The branch 4.4/dropzone-file-uploader was deleted and repushed:
was d74f62123445f42171c64a355b995b8a95d588b4
now e98f261cb657ae4718a49031c6ea427a6469eb26
1: 677f024 = 1: 677f024 ajaxify the function of attachments deletion
2: d74f621 ! 2: e98f261 initial dropzone file uploader support
@@ -2228,7 +2228,7 @@
+ dictDefaultMessage: <% loc("Drop files here or click to attach") |n,j %>,
+ previewTemplate: '' +
+ '<div class="dz-preview dz-file-preview">' +
-+ ' <div class="dz-remove-mark" data-dz-remove>' +
++ ' <div class="dz-remove-mark pointer-events" data-dz-remove>' +
+ ' <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">' +
+ ' <title><&|/l&>Remove</&></title>' +
+ ' <defs></defs>' +
@@ -2285,7 +2285,7 @@
+ attachDropzone.on('removedfile', function(file) {
+ jQuery.post('/Helpers/Upload/Delete', { Name: file.name, Token: jQuery('#attach-dropzone').closest('form').find('input[name=Token]').val() }, 'json');
+ });
-+ attachDropzone.on('dragover', function() {
++ attachDropzone.on('dragenter', function() {
+ jQuery('#attach-dropzone').addClass('scaled');
+ });
+ attachDropzone.on('dragleave', function() {
@@ -2720,6 +2720,7 @@
+ display: block;
+ width: 28px;
+ height: 28px;
++ cursor: pointer;
+}
+
+.dropzone {
@@ -2747,12 +2748,35 @@
+
+.dropzone.scaled {
+ min-height: 150px;
-+ padding: 20px;
+}
+
+.dropzone {
+ min-height: 60px;
+ padding: 2px;
++}
++
++.dropzone.scaled .dz-message {
++ margin-top: 65px;
++}
++
++.dropzone {
++ transition: min-height 0.3s;
++}
++
++.dropzone .dz-message {
++ transition: margin-top 0.3s;
++}
++
++.dropzone div {
++ pointer-events: none;
++}
++
++.dropzone .pointer-events {
++ pointer-events: auto;
++}
++
++.dropzone .dz-preview.dz-image-preview {
++ background-color: #eee;
+}
diff --git a/share/static/css/base/main.css b/share/static/css/base/main.css
More information about the rt-commit
mailing list