Allow reload of same photo
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
70db5290ab
commit
8871ffa28e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user