Problem with dropdown2 and <meta name="decorator" content="blank"/>

Ulf Borgwardt May 3, 2015

Hello,

 

i got a problem I recently upgraded my JIRA Server from 6.0.6 to 6.3.15.

Now it seems on of my plug-ins dont work correctly any more.

  In the Plugin i want to show some table.

 

generateProjectOverview: function () {
        jQuery.ajax({
            url: contextPath + this.tableServletUrl,
            type: "GET",
            data: {
                "userKey": this.userKey,
                "projectKey": this.projectKey,
                "versionId": jQuery("#versionListBox").val(),
                "table": this.projectOverviewTableId,
                "depth": jQuery("#depthListBox").val()
            },
            beforeSend: function () {
                jQuery("#devReportLoadingMessage").fadeIn(0);
            },
            success: function (response) {
                jQuery("#devReportLoadingMessage").fadeOut(0);

                jQuery("#project-overview-container").prepend(response).slideDown("slow");
            },
            error: function () {
                alert("Could not generate the Project Overview. :-(");
            }
        });
    },

the response holds an html response from project-overview.vm

&lt;html&gt;
&lt;head&gt;
$webResourceManager.requireResource("com.btcag.devreport:stylesheet-resources")
$webResourceManager.requireResource("com.btcag.devreport:image-resources")
    &lt;meta name="decorator" content="blank"/&gt;
   
&lt;/head&gt;
&lt;body&gt;
&lt;div id="dev-report-wrapper"&gt;

now it seems so that every time <meta name="decorator" content="blank"/> is loaded.

The JIRA on-top dropdown menus create double-clicks, and closes almost instantly.

 

In difference the JIRA 6.3.15

loads

http://jiradevsystem:2990/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/en_UK-u7vici/6346/4/6.3.15/_/download/resources/com.atlassian.jira.jira-header-plugin:jira-header/init-dropdown2.js?_=1430720797637

and the JIRA 6.0.6 loads only batch.js and the detect timezone plugin.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Ralf Sanders May 4, 2015

I think I found it. The Response thou the new response was to long. Now I include the necessary css where the anchor is. Works fine on fist sight,

0 votes
Ulf Borgwardt May 3, 2015

It seems like the new response is to long. I Trim it and only left this Codeblock in the Header. It worked.

The CSS File should come with the $webResourceManager.requireResource("com.btcag.devreport:stylesheet-resources")

 

$webResourceManager.requireResource("com.btcag.devreport:stylesheet-resources")
$webResourceManager.requireResource("com.btcag.devreport:image-resources")

&lt;meta charset="utf-8"&gt;
 
&lt;link
 media="all" 
href="/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/en_UK-u7vich/6346/4/2.1.7.6/_/download/resources/com.btcag.devreport:stylesheet-resources/devreport.css"
 rel="stylesheet" type="text/css"&gt;

 

 

TAGS
AUG Leaders

Atlassian Community Events