Changeset 22982


Ignore:
Timestamp:
2010-09-28T15:57:19+13:00 (14 years ago)
Author:
kjdon
Message:

deciding which qt value should be checked is no longer 0/1 as we have a value of 2 for sqlform. So now test whether the value is equal to 0,1,2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/macros/pref.dm

    r22091 r22982  
    197197
    198198function updateqt (value) \{
    199   if (value != "_cgiargqt_") argqt = "&qt=" + value;
     199  if (value != _cgiargqt_) argqt = "&qt=" + value;
    200200  else argqt = "";
    201201
     
    350350<td valign=baseline>_textsearchtype_</td>
    351351<td><input type=radio name=qt value=0 onClick="updateqt(0);"
    352         _If_(_cgiargqt_,, checked)>_textplainsearchtype_<br>
     352        _If_("_cgiargqt_" eq "0", checked)>_textplainsearchtype_<br>
    353353<input type=radio name=qt value=1 onClick="updateqt(1);"
    354         _If_(_cgiargqt_, checked)>_textformsearchtype_
     354        _If_("_cgiargqt_" eq "1", checked)>_textformsearchtype_
    355355_If_("_cgiargsqlqto_" eq "1", <br>_searchtypeoptionplussql_)
    356356</td>
     
    359359_searchtypeoptionplussql_ {
    360360<input type=radio name=qt value=2 onClick="updateqt(2);"
    361         _If_(_cgiargqt_, checked)>_textsqlformsearchtype_</td>
     361        _If_("_cgiargqt_" eq "2", checked)>_textsqlformsearchtype_</td>
    362362}
    363363
Note: See TracChangeset for help on using the changeset viewer.