mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-01-18 14:52:10 +01:00
Avoid reloading related tags when changing pages
This commit is contained in:
parent
c8ef4de201
commit
7ecfbe46a5
@ -72,23 +72,26 @@ function getBookmarks() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bookmarks_loading = true;
|
bookmarks_loading = true;
|
||||||
//Update Rel Tags
|
//Update Rel Tags if first page
|
||||||
$.ajax({
|
if(bookmarks_page == 0) {
|
||||||
type: 'GET',
|
|
||||||
url: OC.filePath('bookmarks', 'ajax', 'updateList.php') + '&type=rel_tags',
|
$.ajax({
|
||||||
data: {tag: $('#bookmarkFilterTag').val(), page:bookmarks_page, sort:bookmarks_sorting },
|
type: 'GET',
|
||||||
success: function(tags){
|
url: OC.filePath('bookmarks', 'ajax', 'updateList.php') + '&type=rel_tags',
|
||||||
$('.tag_list').empty();
|
data: {tag: $('#bookmarkFilterTag').val(), page:bookmarks_page, sort:bookmarks_sorting },
|
||||||
for(var i in tags.data) {
|
success: function(tags){
|
||||||
updateTagsList(tags.data[i]);
|
$('.tag_list').empty();
|
||||||
|
for(var i in tags.data) {
|
||||||
|
updateTagsList(tags.data[i]);
|
||||||
|
}
|
||||||
|
$('.tag_list .tag_edit').click(renameTag);
|
||||||
|
$('.tag_list .tag_delete').click(deleteTag);
|
||||||
|
$('.tag_list a.tag').click(addFilterTag);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
$('.tag_list .tag_edit').click(renameTag);
|
});
|
||||||
$('.tag_list .tag_delete').click(deleteTag);
|
}
|
||||||
$('.tag_list a.tag').click(addFilterTag);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: OC.filePath('bookmarks', 'ajax', 'updateList.php') + '&type=bookmark',
|
url: OC.filePath('bookmarks', 'ajax', 'updateList.php') + '&type=bookmark',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user