You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
`
The text was updated successfully, but these errors were encountered:
LusenkoSasha
changed the title
Delete photos and lignbox
Delete photos and lignbox (it's not a question)
Jun 25, 2017
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 second line is for adding lightbox (http://lokeshdhakar.com/projects/lightbox2/)
![image](https://user-images.githubusercontent.com/27783985/27517693-2380ddb2-59d9-11e7-9594-82e71bcdbff4.png)
`
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.
![image](https://user-images.githubusercontent.com/27783985/27517804-fb5d107e-59da-11e7-83ff-0b3aa7c6daa3.png)
We add the code in lfm.js
![image](https://user-images.githubusercontent.com/27783985/27517841-724d5c52-59db-11e7-85bf-5e91d9f1246d.png)
Sorry for my english, wrote through google translate
`
The text was updated successfully, but these errors were encountered: