Skip to content

Commit

Permalink
The image details are not hidden when click on same image in the sear…
Browse files Browse the repository at this point in the history
…ch result
  • Loading branch information
Nazar65 committed Nov 12, 2019
1 parent 3efbe15 commit f070206
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ define([
*/
show: function (record) {
var img;

if (record._rowIndex === this.lastOpenedImage()
&& this.isVisible(record)) {
this.hide();
return;
}

this.hide();
this.displayedRecord(record);
Expand Down

0 comments on commit f070206

Please sign in to comment.