summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-16 21:01:13 +0100
committerBart Visscher <bartv@thisnet.nl>2012-02-17 22:07:15 +0100
commitdab553147470a78dfbe0f220908e35f639d956f6 (patch)
treef38bbcf1825b0651f5997827d2851bec552a12f4
parente8b69d45a3afd9633b997eb178e159f9f97f4766 (diff)
downloadnextcloud-server-dab553147470a78dfbe0f220908e35f639d956f6.tar.gz
nextcloud-server-dab553147470a78dfbe0f220908e35f639d956f6.zip
Bookmarks: Fix image urls in bookmarks.js
-rw-r--r--apps/bookmarks/js/bookmarks.js22
1 files changed, 19 insertions, 3 deletions
diff --git a/apps/bookmarks/js/bookmarks.js b/apps/bookmarks/js/bookmarks.js
index 77f767cdb81..fadbbd5513a 100644
--- a/apps/bookmarks/js/bookmarks.js
+++ b/apps/bookmarks/js/bookmarks.js
@@ -85,7 +85,14 @@ function addOrEditBookmark(event) {
$('.bookmarks_add').children('p').children('.bookmarks_input').val('');
$('.bookmarks_list').prepend(
'<div class="bookmark_single" data-id="' + bookmark_id + '" >' +
- '<p class="bookmark_actions"><span class="bookmark_delete"><img src="img/delete.png" title="Delete"></span>&nbsp;<span class="bookmark_edit"><img src="img/edit.png" title="Edit"></span></p>' +
+ '<p class="bookmark_actions">' +
+ '<span class="bookmark_delete">' +
+ '<img class="svg" src="'+OC.imagePath('core', 'actions/delete')+'" title="Delete">' +
+ '</span>&nbsp;' +
+ '<span class="bookmark_edit">' +
+ '<img class="svg" src="'+OC.imagePath('core', 'actions/rename')+'" title="Edit">' +
+ '</span>' +
+ '</p>' +
'<p class="bookmark_title"><a href="' + url + '" target="_blank" class="bookmark_link">' + title + '</a></p>' +
'<p class="bookmark_tags">' + tagshtml + '</p>' +
'<p class="bookmark_url">' + url + '</p>' +
@@ -154,8 +161,17 @@ function updateBookmarksList(bookmark) {
}
$('.bookmarks_list').append(
'<div class="bookmark_single" data-id="' + bookmark.id +'" >' +
- '<p class="bookmark_actions"><span class="bookmark_delete"><img src="img/delete.png" title="Delete"></span>&nbsp;<span class="bookmark_edit"><img src="img/edit.png" title="Edit"></span></p>' +
- '<p class="bookmark_title"><a href="' + encodeEntities(bookmark.url) + '" target="_blank" class="bookmark_link">' + encodeEntities(bookmark.title) + '</a></p>' +
+ '<p class="bookmark_actions">' +
+ '<span class="bookmark_delete">' +
+ '<img class="svg" src="'+OC.imagePath('core', 'actions/delete')+'" title="Delete">' +
+ '</span>&nbsp;' +
+ '<span class="bookmark_edit">' +
+ '<img class="svg" src="'+OC.imagePath('core', 'actions/rename')+'" title="Edit">' +
+ '</span>' +
+ '</p>' +
+ '<p class="bookmark_title">'+
+ '<a href="' + encodeEntities(bookmark.url) + '" target="_blank" class="bookmark_link">' + encodeEntities(bookmark.title) + '</a>' +
+ '</p>' +
'<p class="bookmark_url">' + encodeEntities(bookmark.url) + '</p>' +
'</div>'
);