mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 17:31:28 +00:00
use optgroup tag for grouped select boxes (code cleanup)
This commit is contained in:
@@ -1370,24 +1370,24 @@
|
|||||||
print "<select id=\"feedActionChooser\" onchange=\"feedActionChange()\">
|
print "<select id=\"feedActionChooser\" onchange=\"feedActionChange()\">
|
||||||
<option value=\"facDefault\" selected>".__('Actions...')."</option>
|
<option value=\"facDefault\" selected>".__('Actions...')."</option>
|
||||||
<optgroup label=\"".__('Selection:')."\">
|
<optgroup label=\"".__('Selection:')."\">
|
||||||
<option value=\"facEdit\"> ".__('Edit')."</option>";
|
<option value=\"facEdit\">".__('Edit')."</option>";
|
||||||
|
|
||||||
if (FORCE_ARTICLE_PURGE == 0) {
|
if (FORCE_ARTICLE_PURGE == 0) {
|
||||||
print
|
print
|
||||||
"<option value=\"facPurge\"> ".__('Manual purge')."</option>";
|
"<option value=\"facPurge\">".__('Manual purge')."</option>";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "
|
print "
|
||||||
<option value=\"facClear\"> ".__('Clear feed data')."</option>
|
<option value=\"facClear\">".__('Clear feed data')."</option>
|
||||||
<option value=\"facRescore\"> ".__('Rescore articles')."</option>
|
<option value=\"facRescore\">".__('Rescore articles')."</option>
|
||||||
<option value=\"facUnsubscribe\"> ".__('Unsubscribe')."</option>";
|
<option value=\"facUnsubscribe\">".__('Unsubscribe')."</option>";
|
||||||
|
|
||||||
print "</optgroup>";
|
print "</optgroup>";
|
||||||
|
|
||||||
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
||||||
|
|
||||||
print "<optgroup label=\"".__('Other:')."\">
|
print "<optgroup label=\"".__('Other:')."\">
|
||||||
<option value=\"facEditCats\"> ".__('Edit categories')."
|
<option value=\"facEditCats\">".__('Edit categories')."
|
||||||
</option>
|
</option>
|
||||||
</optgroup>";
|
</optgroup>";
|
||||||
|
|
||||||
|
|||||||
24
tt-rss.php
24
tt-rss.php
@@ -190,23 +190,23 @@ window.onload = init;
|
|||||||
<option value="qmcSearch"><?php echo __('Search...') ?></option>
|
<option value="qmcSearch"><?php echo __('Search...') ?></option>
|
||||||
<!-- <option value="qmcPrefs"><?php echo __('Preferences') ?></option> -->
|
<!-- <option value="qmcPrefs"><?php echo __('Preferences') ?></option> -->
|
||||||
<optgroup label="<?php echo __('Feed actions:') ?>">
|
<optgroup label="<?php echo __('Feed actions:') ?>">
|
||||||
<option value="qmcAddFeed"> <?php echo __('Subscribe to feed...') ?></option>
|
<option value="qmcAddFeed"><?php echo __('Subscribe to feed...') ?></option>
|
||||||
<option value="qmcEditFeed"> <?php echo __('Edit this feed...') ?></option>
|
<option value="qmcEditFeed"><?php echo __('Edit this feed...') ?></option>
|
||||||
<!-- <option value="qmcClearFeed"> <?php echo __('Clear articles') ?></option> -->
|
<!-- <option value="qmcClearFeed"><?php echo __('Clear articles') ?></option> -->
|
||||||
<option value="qmcRescoreFeed"> <?php echo __('Rescore feed') ?></option>
|
<option value="qmcRescoreFeed"><?php echo __('Rescore feed') ?></option>
|
||||||
<option value="qmcRemoveFeed"> <?php echo __('Unsubscribe') ?></option>
|
<option value="qmcRemoveFeed"><?php echo __('Unsubscribe') ?></option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="<?php echo __('All feeds:') ?>">
|
<optgroup label="<?php echo __('All feeds:') ?>">
|
||||||
<option value="qmcCatchupAll"> <?php echo __('Mark as read') ?></option>
|
<option value="qmcCatchupAll"><?php echo __('Mark as read') ?></option>
|
||||||
<option value="qmcShowOnlyUnread"> <?php echo __('(Un)hide read feeds') ?></option>
|
<option value="qmcShowOnlyUnread"><?php echo __('(Un)hide read feeds') ?></option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="<?php echo __('Other actions:') ?>">
|
<optgroup label="<?php echo __('Other actions:') ?>">
|
||||||
|
|
||||||
<option value="qmcAddLabel"> <?php echo __('Create label...') ?></option>
|
<option value="qmcAddLabel"><?php echo __('Create label...') ?></option>
|
||||||
<option value="qmcAddFilter"> <?php echo __('Create filter...') ?></option>
|
<option value="qmcAddFilter"><?php echo __('Create filter...') ?></option>
|
||||||
<option value="qmcResetUI"> <?php echo __('Reset UI layout') ?></option>
|
<option value="qmcResetUI"><?php echo __('Reset UI layout') ?></option>
|
||||||
<option value="qmcResetCats"> <?php echo __('Reset category order') ?></option>
|
<option value="qmcResetCats"><?php echo __('Reset category order') ?></option>
|
||||||
<option value="qmcHKhelp"><?php echo __(' Keyboard shortcuts') ?></option>
|
<option value="qmcHKhelp"><?php echo __('Keyboard shortcuts') ?></option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user