1
Fork 0

cleanup image div script

This commit is contained in:
Jake Howard 2016-08-25 21:51:52 +01:00
parent 8a81224289
commit 8603e19617
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -2,5 +2,9 @@ import './creative';
$('.image').each(function () {
const ele = $(this);
if (ele.data('image')) {
ele.css('background-image', 'url(' + ele.data('image') + ')');
} else {
ele.removeClass('image');
}
});