Problem with preventDefault in AJS

lpopek September 26, 2018

Hello, I have created custom Issue Tab Panel with field, where I can add comment when Ill press my custom button “add comment”

In my VM template I have

AJS.$("#add-comment-button").click(function(e) {
        e.preventDefault();
        AJS.dialog2("#add-status-comment").show();
    });

This button works fine and window to write text appears, but… In other section in Issues --> Current Search —> Views (Detail Views), windows with space to write text dont appear when I click button “add comment”. It only appers in normal view of issue… Whats problem?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events