Delete confirmation for photos

Hi there.

I want to add a "Are you sure" pop-up or something when someone wants to delete a photo.

Is tihs possible?

At this moment when I press delete button, the photo is gone without confirmation

Quote · 23 Nov 2010

Hello do you mean admin or users part of site?

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 24 Nov 2010

 

Hello do you mean admin or users part of site?

User part of the site.

When someone wants to delete his/her photo

Quote · 24 Nov 2010

:(

Quote · 26 Nov 2010

There are a lot of areas that need a delete check. I accidentally deleted an event I spent over an hour creating once. It's a soft spot in these scripts.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 26 Nov 2010

I agree.

I made that request and they told me that they had a discussion over this in the past and they finally decided that admins should not have confirmations dialog before delete.

I totally disagree. NO system should be left without any delete confirmations and it's one of the first rule in GUI interface. Mistakes happen to admins too.

Anyway, boonex developers have seem to have made there minds on this so forget about it.

 

 

Quote · 27 Nov 2010

 

I totally disagree. NO system should be left without any delete confirmations and it's one of the first rule in GUI interface. Mistakes happen to admins too.

 


I agree with that as well, but i also know of others that will disagree. Quite strongly in fact.


https://www.deanbassett.com
Quote · 27 Nov 2010

You could add into function getHtmlData in public_html\inc\js\functions.js the lines:

        if (url.match(/delete/)) {
            if (confirm ("Are you sure ?")) {
            } else {
                return false;
            }
        }

 

before the block starting around line 380 with:

  $.post(url, function(data)

 

It checks the url passed when clicking a button in the Actions frame and asks for confirmation in case it contains the word "delete".

It seems to work but use at your own risk.

 

www.enviroware.com
Quote · 11 Oct 2011

This simple Javascript program can be use, But there is no better idea?

 

function getHtmlData( elem, url, callback, method )
{
    if (url && url.match(/delete/)) {
        if (confirm ("Are you sure ?")) {
    } else {
        return false;
    }
}

 
https://www.insoler.com/ The first community site supports RAW photo formats !
Quote · 4 Sep 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.