aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/static/js/feed.js
blob: b1e3110ec7424a6ba15dba4d34611810c04e0c67 (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="col-sm-9">'
        + '    <input value="-" type="button" class="del-feed-filter-row" />'
        + '    <select name="type">'
        + '        <option value="simple match" selected>simple match</option>'
        + '        <option value="regex">regex</option>'
        + '    </select/>'
        + '    <input type="text" size="50%" name="pattern" />'
        + '    <select name="action_on">'
        + '        <option value="match" selected>match</option>'
        + '        <option value="no match">no match</option>'
        + '    </select/>'
        + '    <select name="action">'
        + '        <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