How to display prompt in Alfresco Share?
Alfresco.util.PopupManager.displayPrompt(
     {
        title: "Prompt Title",
        text: "Do you want to close the screen?",
        buttons: [
        {
           text: "Close",
           handler: function close_screen()
           {
                //Your javascript goes here
                this.destroy();
           }
        },
        {
           text: "Cancel",
           handler: function close_cancel()
           {
              this.destroy();
           },
           isDefault: true
        }]
     }); 
Hope this helps someone!

Thanksssssssss
ReplyDeleteMuralidharan Deenathayalan
ReplyDeletethank you for your good blog,
what is the use of isDefault: true in this script
ReplyDeletewhat is the use of isDefault: true in this script
ReplyDeleteIt is used to set, which button should be selected by default.
DeleteIn this example,Cancel button is set to default selection.