Trigger a AUI Dialog from a web-item

Eugen Mayer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2013

Iam trying to trigger a AUI dialog from a web-item section="system.attachment". I already added a added a css class

<styleClass>goedit_edit_button</styleClass>

so i can bind the dialog on that link, but iam not sure how to load my on-doc-rdy javascript for a system page like pages/viewpageattachments.action.

Maybe there is even a specail css class to auto-bind a dialog?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Eugen Mayer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2013

with the added style-class i used js binded to the page to open a dialog

AJS.toInit(function () {
    var dialog = new AJS.Dialog({
        width:200,
        height:200,              
    }); 

AJS.$(".goedit_edit_button").click(function() {
        dialog.show();
        return false;
    });
});

0 votes
Vikash Kumar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 20, 2013

Hi @em ,

You can refer this link.

Works find for custom popup dialog on confluence action.

TAGS
AUG Leaders

Atlassian Community Events