Subversion Repositories wimsdev

Rev

Rev 12911 | Rev 13304 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12911 Rev 13282
Line 44... Line 44...
44
 
44
 
45
      <script>
45
      <script>
46
        jQuery(function($$){
46
        jQuery(function($$){
47
          // Get in sessionStorage if affined_search was previously uncollapsed
47
          // Get in sessionStorage if affined_search was previously uncollapsed
48
          var affined_search_state = sessionStorage.getItem("affined_search_state");
48
          var affined_search_state = sessionStorage.getItem("affined_search_state");
49
          affined_search_state = affined_search_state === null ? $default_filters_state : affined_search_state;
49
          affined_search_state = !affined_search_state ? $default_filters_state : Number(affined_search_state);
50
          affined_search_state = Number(affined_search_state);
-
 
51
          // Display all affined search fields in a collapsible way
50
          // Display all affined search fields in a collapsible way
52
          $$("#affined_search").accordion({
51
          $$("#affined_search").accordion({
53
            collapsible: true,
52
            collapsible: true,
54
            active: affined_search_state,
53
            active: affined_search_state,
55
            heightStyle: "content",
54
            heightStyle: "content",