Ignore:
Timestamp:
2021-05-24T11:32:07+12:00 (3 years ago)
Author:
kjdon
Message:

option to hide the single radio button in the filter pages part of image slider - use var _display_single_filter_on = true/false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js

    r35171 r35183  
    66// Choose which types of filtering you want: sectionnum, or sectiontitle or both
    77var _filter_on_types = ["sectiontitle", "sectionnum"];
    8 
     8// if we have only one type, do we display the option? true/false
     9var _display_single_filter_on = true;
    910// are titles numeric match?
    1011var _filter_title_numeric = false;
     
    842843      button_div.html("(<input type='radio' name='filterOn' value='title' checked>"+gs.text.doc.filter.title+"</input>)");
    843844    }
     845      if (_display_single_filter_on == false) {
     846          button_div.css("display","none");
     847      }     
     848
    844849  } else {
    845850    // should be both options
Note: See TracChangeset for help on using the changeset viewer.