Skip to content

Commit

Permalink
Fixed image viewer sometimes showing the wrong image
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdesign committed Feb 20, 2016
1 parent eb98d16 commit e9b1b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wcfsetup/install/files/js/WCF.ImageViewer.js
Expand Up @@ -559,7 +559,7 @@ $.widget('ui.wcfImageViewer', {
}
}, this));
}
else if (targetImageElementID !== null) {
else if (targetImageElementID) {
var $i = 0;
$(this.options.imageSelector).each(function(index, element) {
if ($(element).wcfIdentify() == targetImageElementID) {
Expand Down

0 comments on commit e9b1b68

Please sign in to comment.