summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks
diff options
context:
space:
mode:
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2012-02-22 23:58:38 +0100
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2012-02-22 23:58:38 +0100
commit196d6196895e7128d9cd79ac861fdc65c7b54c09 (patch)
tree949412e29051c20a9c85f6ea28d05617040236c3 /apps/bookmarks
parent358fd1c0241d1f8c21637490350c0eac6b29c230 (diff)
downloadnextcloud-server-196d6196895e7128d9cd79ac861fdc65c7b54c09.tar.gz
nextcloud-server-196d6196895e7128d9cd79ac861fdc65c7b54c09.zip
Little bookmark improvement
Diffstat (limited to 'apps/bookmarks')
-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');