summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks/js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/bookmarks/js')
-rw-r--r--apps/bookmarks/js/bookmarks.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/bookmarks/js/bookmarks.js b/apps/bookmarks/js/bookmarks.js
index ac87d967be8..7a5865370d0 100644
--- a/apps/bookmarks/js/bookmarks.js
+++ b/apps/bookmarks/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);
+ }
}
});
}