add csp header only if view->js() is defined

This commit is contained in:
Uwe Steinmann 2015-12-16 07:16:16 +01:00
parent 1dff276217
commit 07f5512c9a

View File

@ -43,7 +43,7 @@ class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common {
} /* }}} */
function htmlStartPage($title="", $bodyClass="") { /* {{{ */
if(1||method_exists($this, 'js')) {
if(method_exists($this, 'js')) {
/* We still need unsafe-eval, because printDocumentChooserHtml and
* printFolderChooserHtml will include a javascript file with ajax
* which is evaled by jquery