From 9d393c84da965ebdcdaba26491ad0649c273af18 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Aug 2008 09:01:53 +0100 Subject: add action to reset category order --- tt-rss.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tt-rss.js') diff --git a/tt-rss.js b/tt-rss.js index 495b48881..2bbe782cb 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -601,6 +601,21 @@ function quickMenuGo(opid) { resize_headlines(); } + if (opid == "qmcResetCats") { + + if (confirm(__("Reset category order?"))) { + + var query = "backend.php?op=feeds&subop=catsortreset"; + + notify_progress("Loading, please wait...", true); + + new Ajax.Request(query, { + onComplete: function(transport) { + window.setTimeout('updateFeedList(false, false)', 50); + } }); + } + } + } catch (e) { exception_error("quickMenuGo", e); } -- cgit v1.2.3-54-g00ecf