From ee8a13c48a71cf4fb4770e48ac717386181ea3c0 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 22 Apr 2018 18:47:30 -0700 Subject: no null category edits --- static/ui.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'static') 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(); + } }, }); -- cgit v1.2.3