diff options
| author | 2014-06-13 20:20:43 +0200 | |
|---|---|---|
| committer | 2014-06-13 20:20:43 +0200 | |
| commit | 2b8dc666345d334f50bf2f4f32f0b127edb40c3a (patch) | |
| tree | 0802e16f4fc2c98a706b8d68cea0bcf89549a18d /p/scripts | |
| parent | 61f4d5457818204eb28ed394d4f1b97160542baa (diff) | |
| parent | a61180032f6c663ed3946fe0bbdb70ac3b8ec96a (diff) | |
Merge branch 'user-queries' of https://github.com/aledeg/FreshRSS into aledeg-user-queries
Conflicts:
app/layout/nav_menu.phtml
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index f1dd7117c..079ae0da4 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -994,6 +994,13 @@ function init_share_observers() { }); } +function init_queries_observers() { + $('.post').on('click', '.query.remove', function(e) { + e.preventDefault(); + $(this).parents('.form-group').remove(); + }); +} + function init_feed_observers() { $('select[id="category"]').on('change', function() { var detail = $('#new_category_name').parent(); @@ -1054,6 +1061,7 @@ function init_all() { window.setInterval(refreshUnreads, 120000); } else { init_share_observers(); + init_queries_observers(); init_feed_observers(); init_password_observers(); } |
