diff options
-rw-r--r-- | tt-rss.js | 12 | ||||
-rw-r--r-- | tt-rss.php | 9 |
2 files changed, 19 insertions, 2 deletions
@@ -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?"))) { diff --git a/tt-rss.php b/tt-rss.php index 5f63b2e85..5e8bc1311 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -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> |