Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Andy79  
#1 Posted : Thursday, August 16, 2012 6:39:11 PM(UTC)
Andy79

Rank: Member

Groups: Member
Joined: 7/31/2012(UTC)
Posts: 14

Thanks: 6 times
Was thanked: 1 time(s) in 1 post(s)
Hi guys,

Is there any way to change the confirm message when you set deleteCurrentVObject(true) ?

e.g. canvasViewer.get_canvas().deleteCurrentVObject(true);

The documentation doesn't mention this...

Thanks,
Andy
Dmitry.Obukhov  
#2 Posted : Thursday, August 16, 2012 8:48:01 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
You may set it like in thi code snippet:
Code:

...
canvasViewer.get_canvas().add_currentVObjectDeleting(function (sender, callback) 
{
  if (confirm('Are you sure?')) 
    { callback(); }
});
...
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
thanks 1 user thanked Dmitry.Obukhov for this useful post.
Andy79 on 8/20/2012(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.