MantisBT: master 9674df6c

Author Committer Branch Timestamp Parent
cproensa dregad master 2015-10-23 08:45 master 9fcdd066
Affected Issues  0019508: Regression when using MantisBT in a browser where JavaScript is disabled
Changeset

CSS: Hide collapsed sections when JS is disabled

What is wrong with the collapse_api semantics:
JS writes the collapse state in a cookie; the server retrieves it to
display each section in the proper state. The classes 'collapse_closed'
and 'collapse_open' may be reversed, causing a collapsed section to have
class 'collapse_open'... wtf?

This commit fixes the problem by creating a new class to identify which
section is the collapsed one. This new class is not affected by
javascript, and hidden by default using CSS.

Fixes 0019508

Signed-off-by: Damien Regad dregad@mantisbt.org

Changes from cproensa's original commits:

  • squashed
  • commit message reworded
  • CSS rule on a single line
mod - core/collapse_api.php Diff File
mod - css/default.css Diff File