summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks/js
diff options
context:
space:
mode:
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2012-02-22 23:28:36 +0100
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2012-02-22 23:28:36 +0100
commit996e6cf419cc9ebecb9c8985e444ee1ba17e9395 (patch)
tree0d66fc233d47d8b9cf00ce93a1dcd2167f5743c7 /apps/bookmarks/js
parent3988ec2813c88fdd8a5caf5bb2a04a60868b18cc (diff)
downloadnextcloud-server-996e6cf419cc9ebecb9c8985e444ee1ba17e9395.tar.gz
nextcloud-server-996e6cf419cc9ebecb9c8985e444ee1ba17e9395.zip
No bookmarks message will now show up if all bookmarks are delted
Diffstat (limited to 'apps/bookmarks/js')
-rw-r--r--apps/bookmarks/js/bookmarks.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/bookmarks/js/bookmarks.js b/apps/bookmarks/js/bookmarks.js
index 166024eabde..2b8dbc3d6d4 100644
--- a/apps/bookmarks/js/bookmarks.js
+++ b/apps/bookmarks/js/bookmarks.js
@@ -9,7 +9,6 @@ $(document).ready(function() {
$('.bookmarks_list').empty();
getBookmarks();
-
});
function getBookmarks() {
@@ -50,7 +49,6 @@ function addOrEditBookmark(event) {
var url = encodeEntities($('#bookmark_add_url').val());
var title = encodeEntities($('#bookmark_add_title').val());
var tags = encodeEntities($('#bookmark_add_tags').val());
- var taglist = tags.split(' ');
$("#firstrun").hide();
if (id == 0) {
@@ -86,7 +84,12 @@ function delBookmark(event) {
$.ajax({
url: 'ajax/delBookmark.php',
data: 'url=' + encodeURI($(this).parent().parent().children('.bookmark_url:first').text()),
- success: function(data){ record.animate({ opacity: 'hide' }, 'fast'); }
+ success: function(data){
+ record.remove();
+ if($('.bookmarks_list').is(':empty')) {
+ $("#firstrun").show();
+ }
+ }
});
}