1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-01-18 14:52:10 +01:00

Don't clear bookmark description field, If it is empty in bookmark metadata.

This commit is contained in:
Golnaz Nilieh 2011-09-06 16:13:23 +04:30
parent b5e47ae36f
commit 3f2f29d334

View File

@ -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);
}
}
});
}