Changeset 2496


Ignore:
Timestamp:
2001-06-05T17:52:35+12:00 (23 years ago)
Author:
sjboddie
Message:

fixed a little problem where the "set preferences" button screwed up when
DocumentUseHTML was set

Location:
trunk/gsdl/macros
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/english.dm

    r2424 r2496  
    648648<br>}
    649649_textrelateddocdisplay_ {display related documents}
    650 _textfcoption_ { Include navigation bar at top of document pages}
    651 _texthloption_ { Highlight search terms within document text}
    652650_textsearchhistory_{Search history:}
    653651_texthistorydisplay_ { display _historynumrecords_search history records}
  • trunk/gsdl/macros/pref.dm

    r2424 r2496  
    115115\}
    116116
    117 function updatefc () \{
    118   if (document.PrefForm.fc.checked)
    119     _If_("_cgiargfc_" eq "1",_argfcblank_,_argfcon_)
    120   else
    121     _If_("_cgiargfc_" ne "1",_argfcblank_,_argfcoff_)
    122   updatehrefs();
    123 \}
    124 
    125 function updatehl () \{
    126   if (document.PrefForm.hl.checked)
    127     _If_("_cgiarghl_" eq "1",_arghlblank_,_arghlon_)
    128   else
    129     _If_("_cgiarghl_" ne "1",_arghlblank_,_arghloff_)
    130   updatehrefs();
    131 \}
    132 }
    133 
    134 _argfcblank_ {argfc = "";}
    135 _argfcon_ {argfc = "&fc=1&f=1";}
    136 _argfcoff_ {argfc = "&fc=0&f=0";}
    137 
    138 _arghlblank_ {arghl = "";}
    139 _arghlon_ {arghl = "&hl=1";}
    140 _arghloff_ {arghl = "&hl=0";}
     117function updatefc(value) \{
     118  if (value != _cgiargfc_) argfc = "&fc=" + value + "&f=" + value;
     119  else argfc = "";
     120  updatehrefs();
     121\}
     122
     123function updatehl(value) \{
     124  if (value != _cgiarghl_) arghl = "&hl=" + value;
     125  else arghl = "";
     126  updatehrefs();
     127\}
     128}
    141129
    142130_pagescriptextra_ {
     
    289277_htmloptionson_ {
    290278<p>
    291 <tr><td colspan=2>_fcoption_</td></tr>
     279<tr>_fcoption_</tr>
    292280<p>
    293 <tr><td colspan=2>_hloption_</td></tr>
     281<tr>_hloption_</tr>
    294282<p>
    295283<tr>_extlinkoption_</tr>
     
    299287
    300288_fcoption_ {
    301 <input type=checkbox name=fc onClick="updatefc();"_If_("_cgiargfc_" eq "1", checked)>
    302 _textfcoption_
     289<td valign=baseline>Document page layout</td>
     290<td><input type=radio name=fc value=1 onClick="updatefc(1);"
     291        _If_(_cgiargfc_, checked)>navigation bar at top<br>
     292<input type=radio name=fc value=0 onClick="updatefc(0);"
     293        _If_(_cgiargfc_,, checked)>no navigation bar</td>
    303294}
    304295
    305296_hloption_ {
    306 <input type=checkbox name=hl onClick="updatehl();"_If_("_cgiarghl_" eq "1", checked)>
    307 _texthloption_
     297<td valign=baseline>Search term highlighting</td>
     298<td><input type=radio name=hl value=1 onClick="updatehl(1);"
     299        _If_(_cgiarghl_, checked)>highlight search terms<br>
     300<input type=radio name=hl value=0 onClick="updatehl(0);"
     301        _If_(_cgiarghl_,, checked)>don't highlight search terms</td>
    308302}
    309303
Note: See TracChangeset for help on using the changeset viewer.