Make transparency visible when editing, and reset background color to white when done.

This commit is contained in:
ccd0 2015-11-01 16:53:05 -08:00
parent efd5bae561
commit b65d9acc9d
2 changed files with 5 additions and 1 deletions

View File

@ -111,6 +111,9 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) {
#captchaContainerAlt td:nth-child(2) {
display: table-cell !important;
}
#tegaki-canvas {
background: none;
}
/* Disable obnoxious captcha fade-in. */
body > div:last-of-type {
transition: none !important;

View File

@ -85,6 +85,7 @@ QR.oekaki =
onCancel: ->
width: +document.querySelector('#qr [name=oekaki-width]').value
height: +document.querySelector('#qr [name=oekaki-height]').value
bgColor: '#ffffff'
button: ->
if QR.selected.file
@ -113,7 +114,7 @@ QR.oekaki =
FCX.oekakiName = name
Tegaki.open
onDone: FCX.oekakiCB
onCancel: ->
onCancel: -> Tegaki.bgColor = '#ffffff'
width: file.naturalWidth or file.videoWidth
height: file.naturalHeight or file.videoHeight
bgColor: 'transparent'