diff options
author | Adam Mathes <adam@trenchant.org> | 2017-01-30 18:43:29 -0800 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2017-01-30 18:43:29 -0800 |
commit | 09a859501fc1fb1f4f781cfdd448f359b7ef4983 (patch) | |
tree | 08d5e0e942b88d47e5799c406de640f49c305756 /static | |
parent | 030cfcce60658ede58a31b36704a3a417c346a4c (diff) | |
download | neko-09a859501fc1fb1f4f781cfdd448f359b7ef4983.tar.gz neko-09a859501fc1fb1f4f781cfdd448f359b7ef4983.tar.bz2 neko-09a859501fc1fb1f4f781cfdd448f359b7ef4983.zip |
add back in starred functionality, fix login page
Diffstat (limited to 'static')
-rw-r--r-- | static/login.html | 6 | ||||
-rw-r--r-- | static/ui.js | 8 |
2 files changed, 3 insertions, 11 deletions
diff --git a/static/login.html b/static/login.html index d97c831..ab3e781 100644 --- a/static/login.html +++ b/static/login.html @@ -3,11 +3,6 @@ <head> <title>neko rss mode</title> <link rel="stylesheet" href="/static/style.css" /> - <script src="/static/jquery.min.js"></script> - <script src="/static/jquery.tmpl.min.js"></script> - <script src="/static/underscore.min.js"></script> - <script src="/static/backbone.min.js"></script> - <script src="/static/ui.js"></script> <meta name="viewport" content="width=device-width" /> <meta name="viewport" content="initial-scale=1.0" /> </head> @@ -19,7 +14,6 @@ <h3>password</h3> <input type="password" name="password"> - <input type="submit" name="login"> </form> diff --git a/static/ui.js b/static/ui.js index 96e285d..6f44db0 100644 --- a/static/ui.js +++ b/static/ui.js @@ -224,9 +224,6 @@ var ItemCollection = Backbone.Collection.extend({ App.loading = true; url = '/stream/'; - if(App.get('starredFilter')) { - url = url + 'starred/'; - } if(App.tag != undefined) { url = url + 'tag/' + App.tag + '/'; } @@ -234,11 +231,12 @@ var ItemCollection = Backbone.Collection.extend({ if(App.get('searchFilter')) { url = url + '&q=' + App.get('searchFilter'); } - if(App.get('feedFilter')) { url = url + '&feed_url=' + App.get('feedFilter').get('url'); } - + if(App.get('starredFilter')) { + url = url + '&starred=1'; + } if(App.items.last()) { url = url + '&max_id=' + App.items.last().get('_id'); } |