fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91a20d3
)
Fix for image loading.
author
Radek Czajka
<rczajka@rczajka.pl>
Thu, 28 Sep 2023 10:32:40 +0000
(12:32 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Thu, 28 Sep 2023 10:32:40 +0000
(12:32 +0200)
src/redakcja/static/js/wiki/view_properties.js
patch
|
blob
|
history
diff --git
a/src/redakcja/static/js/wiki/view_properties.js
b/src/redakcja/static/js/wiki/view_properties.js
index
56bd84d
..
3d30fd3
100644
(file)
--- a/
src/redakcja/static/js/wiki/view_properties.js
+++ b/
src/redakcja/static/js/wiki/view_properties.js
@@
-163,7
+163,7
@@
var imglist = modal.find('.modal-body');
imglist.html('');
$.each(self.doc.galleryImages, (i, imgItem) => {
- img = $("<img>").attr("src", imgItem.thumb).attr('title', imgItem.url).data('url', imgItem.url).on('click', function() {
+
let
img = $("<img>").attr("src", imgItem.thumb).attr('title', imgItem.url).data('url', imgItem.url).on('click', function() {
imglist.find('img').removeClass('active');
$(this).addClass('active');
});