mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Don't clear bookmark description field, If it is empty in bookmark metadata.
This commit is contained in:
parent
f4b9895cbf
commit
0b5f0ac249
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue