]> git.lizzy.rs Git - rust.git/commit
Use more jQuery to avoid displaying Expand Description more often.
authorHuon Wilson <dbau.pp+github@gmail.com>
Sat, 6 Sep 2014 00:35:19 +0000 (10:35 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Sat, 6 Sep 2014 01:04:39 +0000 (11:04 +1000)
commit9151874f406c5caf723d8cd6c09f1a9029b4d038
tree8d0fa6429de066fee18885a2b75edd14a2405e04
parent5dfb7a6ec1c1b7827a1f019b276c4d959cf2d71e
Use more jQuery to avoid displaying Expand Description more often.

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.
src/librustdoc/html/static/main.js