Forums

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

Copeid Macros do not work as the Source

Todor Plachkov May 3, 2018

Hello,

I've created several macros and they all worked really well. Recently, I've created a "Progress Bar Macro", which is shown bellow. But it only works once per page and I don't know why. 

It doesn't matter if I copy the first instance of the macro or call it from the Macros Browser. The second, third,.... same macro just doesn't work. 

I don't get it why. All other user macros I've created are behaving normally, when I copy/use them more than once in page.

I realize that somehow a class defined/mentioned in one macro is confusing other macros that also have the same class. The funny part is that these "other" macros are practically the same as the source... 

So is it a bug or something else?

Any help will be appreciated.

Macro Question.png

## @param ProgressStatus:title=Progress Status in %|type=string|required=true|default=0|desc=Value must be between 0-100

<div style="text-align:right">Progress Status: $paramProgressStatus%</div>
<div class="aui-progress-indicator progressBar">
<span class="aui-progress-indicator-value"></span>
</div>

<script type="text/javascript">
$paramProgressStatus100=$paramProgressStatus/100
AJS.progressBars.update(".progressBar", $paramProgressStatus100);
</script>

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events