⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

How to maintain images when cancel button clicking even if deleted?



delvinpkty
  • profile picture
  • Member

Posted 31 July 2013 - 06:58 AM

In grocery crud edit form there is cancel button for cancelling this edit options and will go to view form.

In edit form, image selection have image delete option.

 

bKecm.png

 

 

But after delete button click, even if cancel button click the image will be deleted.

Anyone have any solution to resolve this ?

Thanks in advance.

 


davidoster
  • profile picture
  • Member

Posted 31 July 2013 - 11:19 AM

Hello and welcome to the forums [member=delvinpkty].

When you press the delete button for an image, while in editing mode, the image is deleted at that time.

This is the normal behaviour. It doesn't get deleted when you press the save (or cancel button).

I think that there isn't a way to change this, unless you change the library and the attached js code.