aboutsummaryrefslogtreecommitdiff
path: root/web/static/js/feed.js
blob: a2347286e9829bf2e05d4772eca5dc2dff087789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$('.container').on('click', '#add-feed-filter-row', function() {
    $('#filters-container').append(
        '<div class="form-inline">'
        + '    <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>'
        + '</div>');
});
$('.container').on('click', '.del-feed-filter-row', function() {
    $(this).parent().remove();
});
bgstack15