Make screenshot feature compatible with Firefox 40
This commit is contained in:
parent
b944b44dca
commit
dd239ddb59
|
|
@ -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
|
||||
--------------
|
||||
|
|
|
|||
|
|
@ -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
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ Screenshot.prototype.checkInput = function() {
|
|||
}
|
||||
}
|
||||
|
||||
pasteCatcher.innerHTML = "";
|
||||
this.pasteCatcher.innerHTML = "";
|
||||
};
|
||||
|
||||
// Creates a new image from a given source
|
||||
|
|
|
|||
Loading…
Reference in New Issue