diff options
author | Craig Meyer <[email protected]> | 2011-07-30 22:34:22 -0400 |
---|---|---|
committer | Craig Meyer <[email protected]> | 2011-07-30 22:34:22 -0400 |
commit | 08ae2a5ba6b69b574c891a7fb3f88cab5d55b66f (patch) | |
tree | 64273a5c001539f92b858e28e6010e6c9e2e05be /functions.js | |
parent | 9949bd154e9d01b50132e387059ef987c6887c8b (diff) |
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]
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/functions.js b/functions.js index 335ed61ec..e8bd6af33 100644 --- a/functions.js +++ b/functions.js @@ -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; } |