From 3f2f29d33402577fbd87369c247329fca5155518 Mon Sep 17 00:00:00 2001 From: Golnaz Nilieh Date: Tue, 6 Sep 2011 16:13:23 +0430 Subject: [PATCH] Don't clear bookmark description field, If it is empty in bookmark metadata. --- js/bookmarks.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/bookmarks.js b/js/bookmarks.js index ac87d967..7a586537 100644 --- a/js/bookmarks.js +++ b/js/bookmarks.js @@ -51,8 +51,10 @@ function getMetadata() { data: 'url=' + encodeURIComponent(url), success: function(pageinfo){ $('#bookmark_add_url').val(pageinfo.data.url); - $('#bookmark_add_description').val(pageinfo.data.description); $('#bookmark_add_title').val(pageinfo.data.title); + if (pageinfo.data.description !== undefined){ + $('#bookmark_add_description').val(pageinfo.data.description); + } } }); }