From 6758b71d4ac0d07f4e61a940b03815a93dffa8a0 Mon Sep 17 00:00:00 2001 From: Jerry Jalava Date: Wed, 31 Oct 2007 22:03:35 +0200 Subject: [PATCH] Better handling on view --- js/widgets/tags.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/widgets/tags.js b/js/widgets/tags.js index 06522d0..60eaf4a 100644 --- a/js/widgets/tags.js +++ b/js/widgets/tags.js @@ -66,7 +66,10 @@ }, value_on_view: function(value) { - return value.join(this.settings.separator); + if (value.length > 0) { + return value.join(this.settings.separator); + } + return ''; }, loaded: function() { @@ -88,6 +91,7 @@ $.ajatus.debug("saved tag: "+data.id); $.ajatus.tags.cache.push(data.id); + $.ajatus.tags.update_cache(); } } jqcouch.on_error = function(request, caller) { -- 2.11.4.GIT