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