diff options
author | Andrew Dolgov <[email protected]> | 2010-08-06 16:34:18 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-08-06 16:34:18 +0400 |
commit | 791c839642f56db16fa11672739bad2515fabdaf (patch) | |
tree | a618169ac1020122dadea6cc35ea3480977b960e | |
parent | a7a9968684dca544e46e6da5338c9a452b1d8f24 (diff) |
quick menu: add entry to reorder categories; tweak menu layout
-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> |