Capturing the Deleted File

Last post 04-01-2011, 9:31 AM by Eric. 1 replies.
Sort Posts: Previous Next
  •  03-31-2011, 10:55 PM 66951

    Capturing the Deleted File

    The gallery is really nice!  Good job!  However, I do have a question.  Is there any way to capture the filename of the photo that was just deleted from the "right click" menu?  I noticed it causes a postback when clicking Delete but I haven't figured out how to capture the filename on postback.  Thanks in advance!
  •  04-01-2011, 9:31 AM 66960 in reply to 66951

    Re: Capturing the Deleted File

    Dear convertix,
     
    Please open file "CuteSoft_Client\Gallery\Popup\Default\Code.js", when you delete photo, it will call the following function:
    menu.Add(1,GalleryLocalize.CLICK_DELETE,null,ToDelegate(this,function Delete(){
       this.Confirm(FormatText(GalleryLocalize.CONFIRM_CLICK_DELETEPHOTO,photo.Title),function(res){
        if(!res)return;
        this.Browser.AsyncDeletePhoto({CategoryID:photo.CategoryID,PhotoID:photo.PhotoID});
       },this);
      }));
     
    PhotoID will return the filename to be deleted.
     
    Thank you for asking
     
     
View as RSS news feed in XML