summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/bookmarks/js/bookmarks.js3
-rw-r--r--apps/bookmarks/templates/list.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/bookmarks/js/bookmarks.js b/apps/bookmarks/js/bookmarks.js
index 2b8dbc3d6d4..17688615df8 100644
--- a/apps/bookmarks/js/bookmarks.js
+++ b/apps/bookmarks/js/bookmarks.js
@@ -30,6 +30,9 @@ function getBookmarks() {
updateBookmarksList(bookmarks.data[i]);
$("#firstrun").hide();
}
+ if($('.bookmarks_list').is(':empty')) {
+ $("#firstrun").show();
+ }
$('.bookmark_link').click(recordClick);
$('.bookmark_delete').click(delBookmark);
diff --git a/apps/bookmarks/templates/list.php b/apps/bookmarks/templates/list.php
index b3849069fee..1abdbb7f838 100644
--- a/apps/bookmarks/templates/list.php
+++ b/apps/bookmarks/templates/list.php
@@ -17,7 +17,7 @@
</div>
<div class="bookmarks_list">
</div>
-<div id="firstrun">
+<div id="firstrun" style="display: none;">
<?php
echo $l->t('You have no bookmarks');
require_once('bookmarklet.php');