diff options
author | Adam Mathes <adam@trenchant.org> | 2018-04-22 18:47:30 -0700 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2018-04-22 18:47:30 -0700 |
commit | ee8a13c48a71cf4fb4770e48ac717386181ea3c0 (patch) | |
tree | 65729f2a0007269c6e8a69a90e5df0c7ea17e110 | |
parent | 0a6d8c78730f1da263a855d1f17c0ff92ac1070a (diff) | |
download | neko-ee8a13c48a71cf4fb4770e48ac717386181ea3c0.tar.gz neko-ee8a13c48a71cf4fb4770e48ac717386181ea3c0.tar.bz2 neko-ee8a13c48a71cf4fb4770e48ac717386181ea3c0.zip |
no null category edits
-rw-r--r-- | static/ui.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/static/ui.js b/static/ui.js index 6dcb6ab..82288d1 100644 --- a/static/ui.js +++ b/static/ui.js @@ -488,8 +488,10 @@ var FeedView = Backbone.View.extend({ }, edit: function() { var cat = window.prompt("Category for this feed?", this.model.get("category")); - this.model.set("category", cat); - this.model.save(); + if (cat != null) { + this.model.set("category", cat); + this.model.save(); + } }, }); |