var data, self = this, onSuccess = function (fileHandle) {
this.setLoadDirectory(this.getFileDirectoryURI(fileHandle));
tizen.content.scanFile(fileName, function () {
- self.loadThumbnail(false, false);
+ setTimeout(function(){ self.loadThumbnail(true, true); }, 200);
}, function () {
console.error('scanFile: file not found');
- self.loadThumbnail(false, false);
+ self.loadThumbnail(true, false);
});
}.bind(this);
SelfCamera.prototype.savePhoto = function savePhoto() {
var self = this;
this.saveCanvas(this.img, this.saveDirectory + this.filename);
- setTimeout(function(){ self.loadThumbnail(true, true); }, 500);
};
SelfCamera.prototype.findLastPhoto = function findLastPhoto(onFind) {
$('#thumbnail').css('background-image', 'url("./images/transparent.png")');
if (show) {
if (animate) {
- $('#thumbnail').css({'opacity':0}).show().animate({'opacity':1});
+ $('#thumbnail').css({'opacity':0.01}).show().animate({'opacity':1.00});
}
else {
$('#thumbnail').show();