close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

deleting images issue

Thread began 3/03/2011 4:07 am by Suggs | Last modified 3/04/2011 9:36 am by Jason Byrnes | 961 views | 5 replies |

Suggs

deleting images issue

Hi Folks,

When I try to delete an image, it shows the lightbox "delete this image" box and when I click the delete button, it produces a popup box that just says failed.

Once you click OK on the popup box and If you then refresh the gallery it has in fact deleted the image and it disappears.

Can you help me resolve the popup box that says "failed" issue?

Ive attached a screenshot for you showing the error.

Permissions on the images folder are spot on as well

Cheers

Paul

Sign in to reply to this post

Jason ByrnesWebAssist

in the admin_gallery/js/manageimages.js file, delete lines 180 - 182:

else {
alert('failed');
}
Sign in to reply to this post

Suggs

Hi Jason,
That has certainly stopped the "failed" popup message, however all it does now is sit at the delete / cancel lightbox page without returning to the gallery.
The image deletes but in order for it to disappear, you have to press the cancel button on the lightbox cancel / delete page and refresh the manage images page.

I need this to work as it has in other galleries when you just press the delete buttn.

Any help would be greatly appreciated.

Paul

Sign in to reply to this post

Jason ByrnesWebAssist

hmmm, instead of deleting that code completly, change:
alert('failed');



to:
window.location.reload();

Sign in to reply to this post

Suggs

Awesome stuff Jason.

It worked.

Thanks for the advice

Paul

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...