diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 18:13:43 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-19 18:13:43 +0100 |
commit | b6a4a8a29b37c8b3f7124285ae21e32bf06a8f5c (patch) | |
tree | 5fd5f748571b08d0c3cbc10ad687f80a79cc5fc8 /js/admin/Admin.js | |
parent | 53443fd1776658991091c9cc308fb86f7d3ac8ef (diff) |
allow to change the explore service url
Diffstat (limited to 'js/admin/Admin.js')
-rw-r--r-- | js/admin/Admin.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/admin/Admin.js b/js/admin/Admin.js index 056add22a..823d6b0ab 100644 --- a/js/admin/Admin.js +++ b/js/admin/Admin.js @@ -27,6 +27,8 @@ $('#news input[name="news-feed-fetcher-timeout"]'); var maxSizeInput = $('#news input[name="news-max-size"]'); + var exploreUrlInput = + $('#news input[name="news-explore-url"]'); var savedMessage = $('#news-saved-message'); var saved = function () { @@ -47,6 +49,7 @@ var maxRedirects = maxRedirectsInput.val(); var feedFetcherTimeout = feedFetcherTimeoutInput.val(); var maxSize = maxSizeInput.val(); + var exploreUrl = exploreUrlInput.val(); var useCronUpdates = useCronUpdatesInput.is(':checked'); var data = { @@ -56,7 +59,8 @@ maxRedirects: parseInt(maxRedirects, 10), feedFetcherTimeout: parseInt(feedFetcherTimeout, 10), maxSize: parseInt(maxSize, 10), - useCronUpdates: useCronUpdates + useCronUpdates: useCronUpdates, + exploreUrl: exploreUrl }; var url = OC.generateUrl('/apps/news/admin'); @@ -76,6 +80,7 @@ maxSizeInput.val(data.maxSize); feedFetcherTimeoutInput.val(data.feedFetcherTimeout); useCronUpdatesInput.prop('checked', data.useCronUpdates); + exploreUrlInput.val(data.exploreUrl); }); }; |