Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix conflicts

dominik-zeglenad04b0226d19
diff --git a/saleor/static/dashboard/js/dashboard.js b/saleor/static/dashboard/js/dashboard.js
index 6cf94eddfb..58a7f3b721 100644
--- a/saleor/static/dashboard/js/dashboard.js
+++ b/saleor/static/dashboard/js/dashboard.js
@@ -34,6 +34,13 @@ function openModal() {
$modal.html(response);
initSelects();
$modal.modal('open');
+ // Image checkbox selector
+ $('.image_select-item-overlay').on('click', function (e) {
+ let id = $(e.target).attr('id');
+ let checkbox = $('input#' + id).prop('checked');
+ $('input#' + id).prop('checked', !checkbox);
+ $(e.target).toggleClass('checked', !checkbox);
+ });
}
});