1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 08:15:55 +00:00

Extend OPML preferences pane, to provide more control of Export OPML

User is prompted for filename, and also whether to include settings.
    Default filename is: TinyTinyRSS.opml

    modules/pref-feeds.php
        Prompt for output OPML filename (Default: TinyTinyRSS.opml )
    opml.php
        Modify to support passing in name=<filename>&settings=[0|1]
    functions.js
        Modify to support passing in name=<filename>&settings=[0|1]
This commit is contained in:
Craig Meyer
2011-07-30 22:34:22 -04:00
parent 9949bd154e
commit 08ae2a5ba6
3 changed files with 23 additions and 11 deletions

View File

@@ -277,8 +277,9 @@ function gotoMain() {
document.location.href = "tt-rss.php";
}
function gotoExportOpml() {
document.location.href = "opml.php?op=Export";
function gotoExportOpml(filename, settings) {
tmp = settings ? 1 : 0;
document.location.href = "opml.php?op=Export&filename=" + filename + "&settings=" + tmp;
}