- 
                Notifications
    You must be signed in to change notification settings 
- Fork 741
Lightbox integration (including function of delete photos)
Thanks LusenkoSasha, pasted from #357.
Understood how to do a photo removal when editing a product for example. And also connected lightbox
 The first line is responsible for the appearance of the delete button when adding photos
The first line is responsible for the appearance of the delete button when adding photos
The second line is for adding  lightbox (http://lokeshdhakar.com/projects/lightbox2/)
`
I'll give an example with two buttons, if you need two photos for the goods

Next, we do a loop in which we check the value input, and if the value is not empty, then we assign our delete button, and also assign the data-lightbox attribute to our lightbox for the href_img class.

We finished with the code that will show the photo with the ability to delete it when editing the product
Let's start deleting the photo.

We add the code in lfm.js


 

Sorry for my english, wrote through google translate.
Documents: unisharp.github.io/laravel-filemanager