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

master
Andrew Dolgov 15 years ago
parent a7a9968684
commit 791c839642

@ -613,6 +613,18 @@ function quickMenuGo(opid) {
resize_headlines(); 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 (opid == "qmcResetCats") {
if (confirm(__("Reset category order?"))) { if (confirm(__("Reset category order?"))) {

@ -187,13 +187,18 @@
<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 __('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:') ?>"> <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="qmcHKhelp"><?php echo __('Keyboard shortcuts help') ?></option>
<option value="qmcHKhelp"><?php echo __('Keyboard shortcuts') ?></option>
</optgroup> </optgroup>
</select> </select>

Loading…
Cancel
Save