Commit c7d06da9c9e9aac3331e475878f42d64a119f160

Authored by Eugeny Galkovskiy
1 parent 98780140

gallery

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
backend/web/js/galleryWidget.js
... ... @@ -32,7 +32,7 @@ $(
32 32 .on(
33 33 'click', '#add-image', function(e) {
34 34 var hash = Math.floor(Math.random() * 89999) + 10000;
35   - var content = '<div class="col-md-4 gw-item"><input id="' + hash + '" class="gw-image-input" name ="images[' + hash + ']" ' + 'data-img="' + hash + '_img" data-name="' + hash + '_name" type ="hidden"> ' + '<img id="' + hash + '_img" class="img-rounded" src="/admin/product/create" alt="">' + '<p id="' + hash + '_name" class="text-info"></p>' + '<button type="button" class="open-modal-imagemanager btn btn-primary" data-aspect-ratio="" data-crop-view-mode="1" ' + 'data-input-id="' + hash + '"><i class="fa fa-folder-open"></i></button><button type="button" class="remove-img btn btn-danger">' + '<i class="fa fa-trash"></i></button></div>';
  35 + var content = '<div class="col-md-2 gw-item"><input id="' + hash + '" class="gw-image-input" name ="images[' + hash + ']" ' + 'data-img="' + hash + '_img" data-name="' + hash + '_name" type ="hidden"> ' + '<div class="image_gall"><img id="' + hash + '_img" alt=""></div>' + '<p id="' + hash + '_name" class="text-info"></p>' + '<button type="button" class="open-modal-imagemanager btn btn-primary" data-aspect-ratio="" data-crop-view-mode="1" ' + 'data-input-id="' + hash + '"><i class="fa fa-folder-open"></i></button><button type="button" class="remove-img btn btn-danger">' + '<i class="fa fa-trash"></i></button></div>';
36 36 $('.gw-container')
37 37 .append(content);
38 38 // if (document.querySelectorAll(".gw-container > .gw-item").length % 3 === 0) {
... ...