|
@@ -32,16 +32,15 @@ function setLinks(e) {
|
|
$('#imagelink').removeAttr('href');
|
|
$('#imagelink').removeAttr('href');
|
|
}
|
|
}
|
|
var image = $("#image");
|
|
var image = $("#image");
|
|
- // image.fadeTo('fast', 0.2, function () {
|
|
|
|
- image.css('opacity', '0.2');
|
|
|
|
- image.attr('src', imageUrlPrefix + dirname + '/' + filename);
|
|
|
|
- image.on('load', function() {
|
|
|
|
-// image.fadeTo('fast', 1);
|
|
|
|
- image.css('opacity', '1');
|
|
|
|
- });
|
|
|
|
- if (doPush)
|
|
|
|
- window.history.pushState(currId, '', scriptUrlPrefix + 'image.php?dir=' + dirname + '&file=' + filename);
|
|
|
|
-// });
|
|
|
|
|
|
+ image.css('opacity', '0.2');
|
|
|
|
+ image.attr('src', imageUrlPrefix + dirname + '/' + filename);
|
|
|
|
+ image.on('load', function() {
|
|
|
|
+ image.css('opacity', '1');
|
|
|
|
+ });
|
|
|
|
+ if (doPush)
|
|
|
|
+ window.history.pushState(currId, '', scriptUrlPrefix + 'image.php?dir=' + dirname + '&file=' + filename);
|
|
|
|
+ commentsImageReplace(imglist[currId]);
|
|
|
|
+ refreshComments();
|
|
}
|
|
}
|
|
|
|
|
|
function nextImage(e) {
|
|
function nextImage(e) {
|
|
@@ -69,7 +68,7 @@ function imglistReceived(data) {
|
|
for (var i=0; i<data.length; i++) {
|
|
for (var i=0; i<data.length; i++) {
|
|
file = data[i];
|
|
file = data[i];
|
|
if(file.name == filename) {
|
|
if(file.name == filename) {
|
|
- currId = file.id;
|
|
|
|
|
|
+ currId = file.ord;
|
|
found = true;
|
|
found = true;
|
|
break;
|
|
break;
|
|
}
|
|
}
|