aboutsummaryrefslogtreecommitdiff
path: root/web/static/js/feed.js
blob: ceef58fcb684af00d9540b67c738d9bf5ae49e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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