Searching a jQuery-workaround for an annoying 4.x bug with attachment-macro: versions are not displayed any more

Sven
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 28, 2012

This is a small but annoying bug:

https://jira.atlassian.com/browse/CONF-24438

As the version information is still there in the page it should be easy with a little bit "jQuery-Magic" inside of "CustomHTML" to fix this?

(until it will be fixed by atlassian - minor bugs tend to take quite some time...)

Thanks for any hint from the jQuery-magicians!

Sven

PS: Anyway, please vote for this bug ;-)

3 answers

1 accepted

0 votes
Answer accepted
Sandro Herrmann [Communardo]
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 28, 2012

Abracadabra...

<script type="text/javascript">

AJS.toInit(function ($) {


jQuery(".plugin_attachments_container .attachment-history a").click(function(){

var b=jQuery(this).parents("table.tableview");
var c=jQuery(this).parents("tr:first")[0].id.substr(11);
var classToSearchFor = "history-"+c,b;

jQuery(".plugin_attachments_table_container tbody tr").each(function(){
  if( jQuery(this).hasClass(classToSearchFor )) {
        jQuery(this).toggleClass("hidden");
    }
});

});

});

</script>

Insert this code to the Global Administration -> Custoom HTML -> "at the end of the BODY" part

Sven
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 29, 2012

Absolutely amazing!!! Thanks a lot!! That's really magic!

1 vote
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 29, 2012

This is fixed in the upcoming 4.2 release. Sincere apologies for the bug.

Sven
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 29, 2012

Hey and that's amazing support!! I really "love" atlassian! ;-)

0 votes
John Marsh
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 28, 2012

This does not help users of Confluence OnDemand.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events