aboutsummaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2018-04-22 18:47:30 -0700
committerAdam Mathes <adam@trenchant.org>2018-04-22 18:47:30 -0700
commitee8a13c48a71cf4fb4770e48ac717386181ea3c0 (patch)
tree65729f2a0007269c6e8a69a90e5df0c7ea17e110 /static
parent0a6d8c78730f1da263a855d1f17c0ff92ac1070a (diff)
downloadneko-ee8a13c48a71cf4fb4770e48ac717386181ea3c0.tar.gz
neko-ee8a13c48a71cf4fb4770e48ac717386181ea3c0.tar.bz2
neko-ee8a13c48a71cf4fb4770e48ac717386181ea3c0.zip
no null category edits
Diffstat (limited to 'static')
-rw-r--r--static/ui.js6
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();
+ }
},
});