Make screenshot feature compatible with Firefox 40

This commit is contained in:
Frederic Guillot 2015-08-23 10:47:12 -04:00
parent b944b44dca
commit dd239ddb59
5 changed files with 5 additions and 4 deletions

View File

@ -37,6 +37,7 @@ Bug fixes:
* Fix broken url for closed tasks in project view
* Fix permission issue when changing the url manually
* Fix bug task estimate is reseted when using subtask timer
* Fix screenshot feature with Firefox 40
Version 1.0.17
--------------

View File

@ -80,7 +80,7 @@ abstract class Base extends \Core\Base
private function sendHeaders($action)
{
// HTTP secure headers
$this->response->csp(array('style-src' => "'self' 'unsafe-inline'", 'img-src' => '*'));
$this->response->csp(array('style-src' => "'self' 'unsafe-inline'", 'img-src' => '* data:'));
$this->response->nosniff();
$this->response->xss();

File diff suppressed because one or more lines are too long

View File

@ -18,7 +18,7 @@ Dropdown.prototype.listen = function() {
if (! submenu.is(':visible')) {
self.close();
if ($(this).offset().top + submenuHeight > $(window).height()) {
if ($(this).offset().top + submenuHeight - $(window).scrollTop() > $(window).height()) {
submenu.addClass('dropdown-submenu-open dropdown-submenu-top');
}
else {

View File

@ -106,7 +106,7 @@ Screenshot.prototype.checkInput = function() {
}
}
pasteCatcher.innerHTML = "";
this.pasteCatcher.innerHTML = "";
};
// Creates a new image from a given source