Merge pull request #374 from colkito/bug/hide-copy-button-without-flash

#356 Fixed copy button if have not flash installed
This commit is contained in:
Matias Alejo Garcia 2014-02-18 20:41:28 -02:00
commit 7e2035ebeb
2 changed files with 5 additions and 3 deletions

View File

@ -288,6 +288,7 @@ function spec() {
},
function (w_cb) {
self.getBlockFromFile(function(err,b) {
if (!b) return w_cb('Could not find block ' + self.startBlock);
h=b.hash;
setImmediate(function(){
return w_cb(err);

View File

@ -49,14 +49,15 @@ angular.module('insight')
};
client.on('mousedown', onMousedown);
client.on('noflash wrongflash', function() {
return elm.remove();
});
scope.$on('$destroy', function() {
client.off('mousedown', onMousedown);
});
});
clip.on('noFlash wrongflash', function() {
return elm.remove();
});
}
};
});