Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why does not the AUI Button Hyperlink macro work?

John Erik Setsaas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 8, 2015

I've added several buttons using the AUI Button Hyperlink, but currently, nothing happens when I select the button, so I'm obviously doing something wrong. However, as there are only a limited number of parameters to set, I need some help in investigating this.

 

I fill in the title, URL and button type=standard and icon=none. I leave ID and class empty.

The button appears nicely when I save, but nothing happens when I select.

Adding a regular hyperlink works fine.

 

Any hits as to what I'm doing wrong?

 

John Erik Setsaas

 

 

2 answers

0 votes
John Erik Setsaas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 9, 2015

Not sure what you are talking about, Volodymyr. I get the following dialog when editing the macro, and no place to edit the code of the macro.

https://www.dropbox.com/s/lciy1jml4t2w7zq/Screenshot%202015-02-10%2009.08.19.png?dl=0

 

However, the sysadm found that there was an upgrade available. When this was installed, the buttons worked.

 

0 votes
Volodymyr Krupach
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.
February 8, 2015

I do not think that AUI button has url param. You need to define onclick handler:

AJS.$("#YOUR-BUTTON-ID").click(function() {
  window.location.assign("http://google.com");
});
Steven F Behnke
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.
February 9, 2015

Aha! They must have changed something at some point, because I'd been using that set up as a URL param and then at some point it stopped working. I wasn't sure when.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events