Use more jQuery to avoid displaying Expand Description more often.#17035
Use more jQuery to avoid displaying Expand Description more often.#17035bors merged 1 commit intorust-lang:masterfrom
Conversation
|
e.g. http://www.rust-ci.org/huonw/slow_primes/doc/slow_primes/ has the Expand description text lying on top of the main description. I can't actually reproduce the issue locally, as it only seems to crop up on Rust CI, but manually inserting this new JS into the page fixes the issue (and manually inserting the old JS in the same manner fails the same as it used to). |
|
This isn't a jQuery issue. The issue is the Content-Security-Policy being returned by rust-ci.org:
Specifically, it doesn't include |
|
Oh I see. In any case, this patch does fix it, so I'll edit the commit message. |
|
Which is to say, we should probably tell rust-ci that they should add |
Sometimes (e.g. on Rust CI) the "expand description" text of the collapse toggle was displayed by default, when a page is first loaded (even though the description is expanded), because some Content-Security-Policy settings disable inline CSS. Setting it the style with the `.css` method allows the output to be used in more places.
|
I just emailed Hans Jørgen Hoel about the CSP issue. |
Sometimes (e.g. on Rust CI) the "expand description" text of the collapse toggle was displayed by default, when a page is first loaded (even though the description is expanded), because some Content-Security-Policy settings disable inline CSS. Setting it the style with the `.css` method allows the output to be used in more places.
There was a problem hiding this comment.
@huonw I think this broke adding the toggles at all :(
See: http://doc.rust-lang.org/std/vec/struct.Vec.html#
CC #17125
Run Windows tests on PRs too Previously PRs would only do a build on Windows, which confusingly meant that PRs got a green tick for Windows despite not testing them. See discussion in rust-lang#17019.
Run Windows tests on PRs too Previously PRs would only do a build on Windows, which confusingly meant that PRs got a green tick for Windows despite not testing them. See discussion in rust-lang#17019.
Sometimes (e.g. on Rust CI) the "expand description" text of the
collapse toggle was displayed by default, when a page is first
loaded (even though the description is expanded), because some
Content-Security-Policy settings disable inline CSS.
Setting it the style with the
.cssmethod allows the output to be usedin more places.