Make screenshot feature compatible with Firefox 40
This commit is contained in:
@@ -37,6 +37,7 @@ Bug fixes:
|
|||||||
* Fix broken url for closed tasks in project view
|
* Fix broken url for closed tasks in project view
|
||||||
* Fix permission issue when changing the url manually
|
* Fix permission issue when changing the url manually
|
||||||
* Fix bug task estimate is reseted when using subtask timer
|
* Fix bug task estimate is reseted when using subtask timer
|
||||||
|
* Fix screenshot feature with Firefox 40
|
||||||
|
|
||||||
Version 1.0.17
|
Version 1.0.17
|
||||||
--------------
|
--------------
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ abstract class Base extends \Core\Base
|
|||||||
private function sendHeaders($action)
|
private function sendHeaders($action)
|
||||||
{
|
{
|
||||||
// HTTP secure headers
|
// 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->nosniff();
|
||||||
$this->response->xss();
|
$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')) {
|
if (! submenu.is(':visible')) {
|
||||||
self.close();
|
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');
|
submenu.addClass('dropdown-submenu-open dropdown-submenu-top');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ Screenshot.prototype.checkInput = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pasteCatcher.innerHTML = "";
|
this.pasteCatcher.innerHTML = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
// Creates a new image from a given source
|
// Creates a new image from a given source
|
||||||
|
|||||||
Reference in New Issue
Block a user