diff options
| author | 2014-03-10 09:46:00 +0100 | |
|---|---|---|
| committer | 2014-03-10 09:46:00 +0100 | |
| commit | 5c2daf58a877fb79a047bcac1d6ece0e0cc6ef0e (patch) | |
| tree | c0fca002909eeae204e6a61b5a334bf5b65d71ad /p/scripts | |
| parent | c3cac60b319189017c38b7d5e1d09f51ded96d0e (diff) | |
| parent | 3083af6288f23ba6986232798fde67b91517f287 (diff) | |
Merge pull request #451 from aledeg/category
Enhance feed adding popup
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index b69ac0a2a..3a4d4e4fb 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -986,6 +986,18 @@ function init_share_observers() { }); }; +function init_feed_observers() { + $('select[id="category"]').on('change', function(){ + var detail = $(this).parent('li').next('li'); + if ($(this).val() === 'nc') { + detail.show(); + detail.find('input').focus(); + } else { + detail.hide(); + } + }); +}; + function init_all() { if (!(window.$ && window.url_freshrss && ((!full_lazyload) || $.fn.lazyload))) { if (window.console) { @@ -1017,6 +1029,7 @@ function init_all() { window.setInterval(refreshUnreads, 120000); } else { init_share_observers(); + init_feed_observers(); } if (window.console) { |
