quick menu: add entry to reorder categories; tweak menu layout

This commit is contained in:
Andrew Dolgov 2010-08-06 16:34:18 +04:00
parent a7a9968684
commit 791c839642
2 changed files with 19 additions and 2 deletions

View file

@ -613,6 +613,18 @@ function quickMenuGo(opid) {
resize_headlines();
}
if (opid == "qmcToggleReorder") {
feedlist_sortable_enabled = !feedlist_sortable_enabled;
if (feedlist_sortable_enabled) {
notify_info("Category reordering enabled");
toggle_sortable_feedlist(true);
} else {
notify_info("Category reordering disabled");
toggle_sortable_feedlist(false);
}
}
if (opid == "qmcResetCats") {
if (confirm(__("Reset category order?"))) {

View file

@ -187,13 +187,18 @@
<option value="qmcCatchupAll"><?php echo __('Mark as read') ?></option>
<option value="qmcShowOnlyUnread"><?php echo __('(Un)hide read feeds') ?></option>
</optgroup>
<optgroup label="<?php echo __('Categories:') ?>">
<option value="qmcToggleReorder"><?php echo __('Toggle reordering mode') ?></option>
<option value="qmcResetCats"><?php echo __('Reset order') ?></option>
</optgroup>
<optgroup label="<?php echo __('Other actions:') ?>">
<option value="qmcAddLabel"><?php echo __('Create label...') ?></option>
<option value="qmcAddFilter"><?php echo __('Create filter...') ?></option>
<option value="qmcResetUI"><?php echo __('Reset UI layout') ?></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 help') ?></option>
</optgroup>
</select>