liked: [],
};
- $(".icon-like").on('click', function(e) {
+ $(document).on('click', '.icon-like', function(e) {
e.preventDefault();
let liked = $(this).hasClass('icon-liked');
$btn = $(this);
}
})
+ // TODO: DYNAMICALLY ADD
$(".add-set-tag input[name=name]").autocomplete({
source: '/ludzie/moje-tagi/',
}).on('autocompleteopen', function() {
});
}
refreshAll(ids);
+ $.refreshLikes = refreshAll;
function updateFromData(data) {
for (pk in data) {