Allow reload of same photo

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-09-08 15:27:23 -07:00
parent 70db5290ab
commit 8871ffa28e

View File

@ -21,7 +21,6 @@
background-color: rgba(0, 0, 0, 0.8);
transition: opacity 0.5s ease-in-out;
-webkit-transition: opacity 0.5s ease-in-out;
border-width: 5px;
box-sizing: border-box;
pointer-events: all;
}
@ -175,8 +174,8 @@ Polymer({
open: function() {
this.closed = false;
this.opened = true;
this.loadImage(this.src);
this.style.opacity = 1;
this.style.borderColor = 'blue';
this.style.display = 'block';
this.focus();
},
@ -203,7 +202,6 @@ Polymer({
this.$.image.style.backgroundImage = 'url("' + this.image.src + '")';
this.$.image.style.opacity = 1;
this.style.borderColor = 'black';
this.image = undefined;
}, remaining);
}.bind(this, image);