Advertisement:

Author Topic: Image visible(until refresh) after delete from ad. (Bug?)  (Read 2263 times)

SamBot

  • Newbie
  • *
  • Posts: 23
Image visible(until refresh) after delete from ad. (Bug?)
« on: April 04, 2014, 11:45:26 am »
Hello,

If you have an ad containing pictures and want to remove these you go to Edit item.
When clicking on Remove next to an image nothing seems to happen. The image is actually deleted because when you press F5 the deleted one is gone. Is there a way to visually remove the image right after clicking delete? Now the user will think it is not removed and keeps clicking on delete.

So far I have seen this behavior in all themes I tried.

Thanks

SamBot

  • Newbie
  • *
  • Posts: 23
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #1 on: April 08, 2014, 01:10:30 am »
Anyone who can assist on this issue. Would like to have this solved before going live with my site.

Thanks.

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #2 on: April 08, 2014, 12:03:01 pm »
@SamBot
Are you using theme with drag & drop image upload system?

SamBot

  • Newbie
  • *
  • Posts: 23
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #3 on: April 08, 2014, 12:06:11 pm »
No. I just use the modern theme.
Adding them works fine but changing the ad and removing them does not update the page after clicking the remove-link.

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #4 on: April 08, 2014, 12:47:00 pm »
@SamBot
Well, you need to get some jQuery here for animation. But it is easier to use drag & drop system that works perfect and is user friendly.

SamBot

  • Newbie
  • *
  • Posts: 23
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #5 on: April 08, 2014, 12:52:43 pm »
My expectation was that it would work from the start. Adding shows it instantly, removing removes it instantly. No clue how to change this behaviour.

And how would I implement a drag and drop system? Is that supported natively?

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #6 on: April 08, 2014, 02:04:49 pm »
@SamBot
It is supported by core, but not implemented in modern theme (only bender).

There is nice and easy way how to include it into modern theme ;)
http://forums.osclass.org/modern/modern-theme-and-osclass-3-3-new-uploading-functions/

SamBot

  • Newbie
  • *
  • Posts: 23
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #7 on: April 08, 2014, 02:09:09 pm »
Thanks. Will check it out.

SamBot

  • Newbie
  • *
  • Posts: 23
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #8 on: April 14, 2014, 01:15:29 am »
I made the changes and can click or drag an image.
On both occasions the upload fails. Message is "Upload failure reason unknown".

I also tried to remove an image from an existing ad and the issue is the same. After clicking the remove button the image is still visible until F5 is pressed.

Any ideas on how to solve this. Upload worked perfect, even without dragging, but removal does not work as it should.

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #9 on: April 14, 2014, 10:22:55 am »
@SamBot
Do you have correct permissions (CHMOD) set on image folder?

SamBot

  • Newbie
  • *
  • Posts: 23
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #10 on: April 14, 2014, 10:53:28 am »
Yes I do. Uploading with the old method works perfect.

I tried another plugin working with fineuploader and this gives the same result.
I tried CHMOD 777 and different browsers. I see the progressbar moving towards 100% and when finally there it gives the error "Upload failed"
« Last Edit: April 14, 2014, 05:13:18 pm by SamBot »

SamBot

  • Newbie
  • *
  • Posts: 23
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #11 on: April 14, 2014, 07:54:00 pm »
I now managed to get the page refreshed so when an image is deleted it is no longer shown on the edit-ad page.

I did this by adding "window.location.reload" after function delete_image was done.

Leaves us to the fix for the fineuploader returning the "upload failed"  error. Would be nice to be able to use this module because it looks really pretty and adds value.

Hope it can be fixed.

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #12 on: April 15, 2014, 10:52:19 am »
@SamBot
Well, I hate errors that does not leave anything in error log - they are untrackable :/

SamBot

  • Newbie
  • *
  • Posts: 23
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #13 on: April 15, 2014, 11:42:34 am »
True, same here.
Guess I´ll have to leave it for now. No chance to debug I guess.

Thanks for your help!

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Image visible(until refresh) after delete from ad. (Bug?)
« Reply #14 on: April 15, 2014, 12:13:12 pm »
@SamBot
You are welcome