aboutsummaryrefslogtreecommitdiff
path: root/src/web/static/js/feed.js
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-26 18:22:39 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-26 23:47:57 +0100
commit228006ea5de5a9f9a60a4f5176620428e551c55b (patch)
treea165ddb271121239ada7aaf7709c195f0045ff5f /src/web/static/js/feed.js
parentredoing constant, handling read / unread in menu, removing bad optim for load... (diff)
downloadnewspipe-228006ea5de5a9f9a60a4f5176620428e551c55b.tar.gz
newspipe-228006ea5de5a9f9a60a4f5176620428e551c55b.tar.bz2
newspipe-228006ea5de5a9f9a60a4f5176620428e551c55b.zip
ressucitating old js
Diffstat (limited to 'src/web/static/js/feed.js')
-rw-r--r--src/web/static/js/feed.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/web/static/js/feed.js b/src/web/static/js/feed.js
new file mode 100644
index 00000000..ceef58fc
--- /dev/null
+++ b/src/web/static/js/feed.js
@@ -0,0 +1,22 @@
+$('.container').on('click', '#add-feed-filter-row', function() {
+ $('#filters-container').append(
+ '<div class="form-group">'
+ + ' <input value="-" type="button" class="form-control del-feed-filter-row" />'
+ + ' <select name="type" class="form-control">'
+ + ' <option value="simple match" selected>simple match</option>'
+ + ' <option value="regex">regex</option>'
+ + ' </select>'
+ + ' <input type="text" class="form-control" name="pattern" />'
+ + ' <select name="action_on" class="form-control">'
+ + ' <option value="match" selected>match</option>'
+ + ' <option value="no match">no match</option>'
+ + ' </select>'
+ + ' <select name="action" class="form-control">'
+ + ' <option value="mark as read" selected>mark as read</option>'
+ + ' <option value="mark as favorite">mark as favorite</option>'
+ + ' </select>'
+ + '</div>');
+});
+$('.container').on('click', '.del-feed-filter-row', function() {
+ $(this).parent().remove();
+});
bgstack15