Show More
@@ -196,3 +196,8 audio { | |||||
196 | width: 200px; |
|
196 | width: 200px; | |
197 | } |
|
197 | } | |
198 |
|
198 | |||
|
199 | .image-preview { | |||
|
200 | max-width: 200px; | |||
|
201 | max-height: 150px; | |||
|
202 | margin: 5px; | |||
|
203 | } No newline at end of file |
@@ -110,7 +110,13 function addOnImagePaste() { | |||||
110 | $('#id_file_1').parent().append(pastedImagesList); |
|
110 | $('#id_file_1').parent().append(pastedImagesList); | |
111 | } |
|
111 | } | |
112 |
|
112 | |||
113 | pastedImagesList.text(gettext('Images posted: ') + pastedImages.length); |
|
113 | var fr = new FileReader(); | |
|
114 | fr.onload = function () { | |||
|
115 | var img = $('<img class="image-preview" />'); | |||
|
116 | img.attr('src', fr.result); | |||
|
117 | pastedImagesList.append(img); | |||
|
118 | }; | |||
|
119 | fr.readAsDataURL(blob); | |||
114 | } |
|
120 | } | |
115 | } |
|
121 | } | |
116 | }); |
|
122 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now