Skip to content

Commit 1d4cb4e

Browse files
committed
fix #1
1 parent e4a4c0e commit 1d4cb4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

image_uploader_widget/static/widgets/image_uploader_widget.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
},
2020
fileRemarker: function(e) {
2121
var iuw = $(this).parent().data('iuw');
22-
if (this.files.length == 0) {
22+
var raw = $(this).parent().attr('data-raw');
23+
if (this.files.length == 0 && !raw) {
2324
this.classList.remove('non-empty');
2425
$(this).parent().find('input[type=checkbox]').prop('checked', true);
2526
} else {

0 commit comments

Comments
 (0)