Toolbar in Search Results is dissapearing in HTML output

86 views Asked by At

I am using MadCap Flare software to create HTML output of my template document. I am using some JQuery code to be inserted in the output HTML. The code is here:

<Script>$('<link>').appendTo($('head')).attr({
    type: 'text/css', 
    rel: 'stylesheet',
    href: 'Content/Resources/Stylesheets/Tripane.css'
});</Script>

Unfortunately, after including this script in the output, the HTML somehow looses the default Toolbar in the Results pane of my HTML site. enter image description here Normally it should look like this: enter image description here and the code in Inspector tab should be like this. enter image description here However, this line is missing in my output!

In the Console tab I am not receiving anything special.

Do You have any idea why the toolbar is missing? Where am I supposed to search for this bug.

1

There are 1 answers

1
Bernhard Beatus On

Try this:

$('<link>')
.appendTo($('head'))
.attr({type:'text/css',rel:'stylesheet'})
.attr('href', 'Content/Resources/Stylesheets/Tripane.css');