img.height(height);
}
updateModalDialogPosition();
- prevArrow.css('display', pos > 0 ? '' : 'none');
- nextArrow.css('display', pos < entries.length - 1 ? '' : 'none');
+ prevArrow.css('display', pos < entries.length - 1 ? '' : 'none');
+ nextArrow.css('display', pos > 0 ? '' : 'none');
progressImg.remove();
});
}
prevArrow.click(function () {
- if (pos > 0) {
- pos--;
+ if (pos < entries.length - 1) {
+ pos++;
}
updatePicture();
});
nextArrow.click(function () {
- if (pos < entries.length - 1) {
- pos++;
+ if (pos > 0) {
+ pos--;
}
updatePicture();