summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks
diff options
context:
space:
mode:
authorGolnaz Nilieh <g382nilieh@gmail.com>2011-09-06 16:13:23 +0430
committerGolnaz Nilieh <g382nilieh@gmail.com>2011-09-06 16:13:23 +0430
commit0b5f0ac24934d5aa54de8dfab6c1de81971ccdb2 (patch)
treef674232d2ffa8862ecef1b254989f8684d59c9fc /apps/bookmarks
parentf4b9895cbf71376559dd1eaadac813ded0737b13 (diff)
downloadnextcloud-server-0b5f0ac24934d5aa54de8dfab6c1de81971ccdb2.tar.gz
nextcloud-server-0b5f0ac24934d5aa54de8dfab6c1de81971ccdb2.zip
Don't clear bookmark description field, If it is empty in bookmark metadata.
Diffstat (limited to 'apps/bookmarks')
-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);
+ }
}
});
}