search.tpl fix: use defaults of first three checkboxes
This commit is contained in:
+8
-7
@@ -1450,20 +1450,21 @@ function outputSearchForm($options)
|
||||
$tpl->assign('orderRatingFirst_checked', $options['orderRatingFirst']);
|
||||
$tpl->assign('hidopt_orderRatingFirst', $options['orderRatingFirst'] ? '1' : '0');
|
||||
|
||||
$tpl->assign('f_userfound_checked', $login->logged_in() && ($options['f_userfound'] == 1));
|
||||
$tpl->assign('hidopt_userfound', ($options['f_userfound'] == 1) ? '1' : '0');
|
||||
|
||||
$tpl->assign('f_userowner_checked', $login->logged_in() &&($options['f_userowner'] == 1));
|
||||
$tpl->assign('hidopt_userowner', ($options['f_userowner'] == 1) ? '1' : '0');
|
||||
|
||||
$tpl->assign('f_inactive_checked', $options['f_inactive'] == 1);
|
||||
$tpl->assign('hidopt_inactive', ($options['f_inactive'] == 1) ? '1' : '0');
|
||||
$tpl->assign('f_userfound_checked', $login->logged_in() && ($options['f_userfound'] == 1));
|
||||
$tpl->assign('hidopt_userfound', ($options['f_userfound'] == 1) ? '1' : '0');
|
||||
|
||||
$tpl->assign('f_ignored_checked', $login->logged_in() && ($options['f_ignored'] == 1));
|
||||
$tpl->assign('hidopt_ignored', ($options['f_ignored'] == 1) ? '1' : '0');
|
||||
|
||||
$tpl->assign('f_disabled_checked', $options['f_disabled'] == 1);
|
||||
$tpl->assign('hidopt_disabled', ($options['f_disabled'] == 1) ? '1' : '0');
|
||||
|
||||
$tpl->assign('f_ignored_checked', $login->logged_in() && ($options['f_ignored'] == 1));
|
||||
$tpl->assign('hidopt_ignored', ($options['f_ignored'] == 1) ? '1' : '0');
|
||||
// archived is called "disabled" here for backward compatibility
|
||||
$tpl->assign('f_inactive_checked', $options['f_inactive'] == 1);
|
||||
$tpl->assign('hidopt_inactive', ($options['f_inactive'] == 1) ? '1' : '0');
|
||||
|
||||
$tpl->assign('f_otherPlatforms_checked', $options['f_otherPlatforms'] == 1);
|
||||
$tpl->assign('hidopt_otherPlatforms', ($options['f_otherPlatforms'] == 1) ? '1' : '0');
|
||||
|
||||
@@ -315,13 +315,13 @@ function switchAttributeCat2()
|
||||
<tr>
|
||||
<td class="formlabel">{t}Hide following caches:{/t}</td>
|
||||
<td colspan="4">
|
||||
<input type="checkbox" name="f_userowner" value="1" id="l_userowner" class="checkbox" onclick="sync_options(this)" {if !$logged_in}disabled="disabled"{/if} /> <label for="l_userowner" {if !$logged_in}class="disabled"{/if}>{t}My owned{/t}</label>
|
||||
<input type="checkbox" name="f_userfound" value="1" id="l_userfound" class="checkbox" onclick="sync_options(this)" {if !$logged_in}disabled="disabled"{/if} /> <label for="l_userfound" {if !$logged_in}class="disabled"{/if}>{t}My finds{/t}</label>
|
||||
<input type="checkbox" name="f_ignored" value="1" id="l_ignored" class="checkbox" onclick="sync_options(this)" {if !$logged_in}disabled="disabled"{/if} > <label for="l_ignored" {if !$logged_in}class="disabled"{/if}>{t}My ignored{/t}</label>
|
||||
<input type="checkbox" name="f_userowner" value="1" id="l_userowner" class="checkbox" onclick="sync_options(this)" {if $f_userowner_checked}checked="checked"{/if} {if !$logged_in}disabled="disabled"{/if} /> <label for="l_userowner" {if !$logged_in}class="disabled"{/if}>{t}My owned{/t}</label>
|
||||
<input type="checkbox" name="f_userfound" value="1" id="l_userfound" class="checkbox" onclick="sync_options(this)" {if $f_userfound_checked}checked="checked"{/if} {if !$logged_in}disabled="disabled"{/if} /> <label for="l_userfound" {if !$logged_in}class="disabled"{/if}>{t}My finds{/t}</label>
|
||||
<input type="checkbox" name="f_ignored" value="1" id="l_ignored" class="checkbox" onclick="sync_options(this)" {if $f_ignored_checked}checked="checked"{/if} {if !$logged_in}disabled="disabled"{/if} /> <label for="l_ignored" {if !$logged_in}class="disabled"{/if}>{t}My ignored{/t}</label>
|
||||
<input type="checkbox" name="f_disabled" value="1" id="l_disabled" class="checkbox" onclick="sync_options(this)" {if $f_disabled_checked}checked="checked"{/if} > <label for="l_disabled">{t}disabled[pl]{/t}</label>
|
||||
<nobr><input type="checkbox" name="f_inactive" value="1" id="l_inactive" class="checkbox" onclick="sync_options(this)" {if $f_inactive_checked}checked="checked"{/if} > <label for="l_inactive">{t}archived[pl]{/t}</label></nobr>
|
||||
<nobr><input type="checkbox" name="f_inactive" value="1" id="l_inactive" class="checkbox" onclick="sync_options(this)" {if $f_inactive_checked}checked="checked"{/if} /> <label for="l_inactive">{t}archived[pl]{/t}</label></nobr>
|
||||
<br />
|
||||
<nobr><input type="checkbox" name="f_otherPlatforms" value="1" id="l_otherPlatforms" class="checkbox" onclick="sync_options(this)" {if $f_otherPlatforms_checked}checked="checked"{/if} > <label for="l_otherPlatforms">{t}also listed at GC.com{/t}</label></nobr>
|
||||
<nobr><input type="checkbox" name="f_otherPlatforms" value="1" id="l_otherPlatforms" class="checkbox" onclick="sync_options(this)" {if $f_otherPlatforms_checked}checked="checked"{/if} /> <label for="l_otherPlatforms">{t}also listed at GC.com{/t}</label></nobr>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user