Skip to content

Commit

Permalink
ESlint errors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
roma84 committed Dec 9, 2021
1 parent 9e25ee0 commit 10e379c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions view/adminhtml/web/js/image-assignment.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
define(['jquery', 'Magento_Ui/js/modal/alert'], function($, alert) {
var self,
url;
'use strict';

var self, url;

return {
init: function(ajaxCallUrl, assignBtn) {
Expand Down Expand Up @@ -28,10 +29,14 @@ define(['jquery', 'Magento_Ui/js/modal/alert'], function($, alert) {
last_processed: last_processed,
processed: processed,
thumbnail: $('#easycatalogimg_automated_image_assignment_thumbnail').prop('checked') ? 1 : 0,
search_in_child_categories: $('#easycatalogimg_automated_image_assignment_search_in_child_categories').prop('checked') ? 1 : 0
search_in_child_categories: $(
'#easycatalogimg_automated_image_assignment_search_in_child_categories'
).prop('checked') ? 1 : 0
}
})
.done(function(data) {
var message = $.mage.__("Completed. {count} items were processed.");

if (data.error) {
alert({
title: $.mage.__('Error'),
Expand All @@ -42,7 +47,6 @@ define(['jquery', 'Magento_Ui/js/modal/alert'], function($, alert) {
if (!data.finished) {
self.assignImages(data.last_processed, data.processed);
} else {
var message = $.mage.__("Completed. {count} items were processed.");
alert({
title: $.mage.__('Success'),
content: message.replace('{count}', data.processed)
Expand All @@ -56,5 +60,5 @@ define(['jquery', 'Magento_Ui/js/modal/alert'], function($, alert) {
});
});
}
}
};
});

0 comments on commit 10e379c

Please sign in to comment.