fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes
[wolnelektury.git]
/
src
/
wolnelektury
/
static
/
2021
/
scripts
/
main.js
diff --git
a/src/wolnelektury/static/2021/scripts/main.js
b/src/wolnelektury/static/2021/scripts/main.js
index
843cddb
..
3bbb38d
100644
(file)
--- a/
src/wolnelektury/static/2021/scripts/main.js
+++ b/
src/wolnelektury/static/2021/scripts/main.js
@@
-401,7
+401,7
@@
liked: [],
};
liked: [],
};
- $(
".icon-like").on('click
', function(e) {
+ $(
document).on('click', '.icon-like
', function(e) {
e.preventDefault();
let liked = $(this).hasClass('icon-liked');
$btn = $(this);
e.preventDefault();
let liked = $(this).hasClass('icon-liked');
$btn = $(this);
@@
-431,6
+431,7
@@
}
})
}
})
+ // TODO: DYNAMICALLY ADD
$(".add-set-tag input[name=name]").autocomplete({
source: '/ludzie/moje-tagi/',
}).on('autocompleteopen', function() {
$(".add-set-tag input[name=name]").autocomplete({
source: '/ludzie/moje-tagi/',
}).on('autocompleteopen', function() {
@@
-478,6
+479,7
@@
});
}
refreshAll(ids);
});
}
refreshAll(ids);
+ $.refreshLikes = refreshAll;
function updateFromData(data) {
for (pk in data) {
function updateFromData(data) {
for (pk in data) {