rename css() to js()

This commit is contained in:
Uwe Steinmann 2015-12-11 08:21:04 +01:00
parent 8af22ee9f2
commit 4a23bd9eca
3 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common {
} /* }}} */
function htmlStartPage($title="", $bodyClass="") { /* {{{ */
if(method_exists($this, 'css')) {
if(method_exists($this, 'js')) {
$csp_rules = "script-src 'self';"; // style-src 'self';";
foreach (array("X-WebKit-CSP", "X-Content-Security-Policy", "Content-Security-Policy") as $csp) {
header($csp . ": " . $csp_rules);
@ -121,8 +121,8 @@ $(document).ready(function () {
//]]>
</script>";
}
if(method_exists($this, 'css'))
echo '<script src="../out/out.'.$this->params['class'].'.php?action=css"></script>'."\n";
if(method_exists($this, 'js'))
echo '<script src="../out/out.'.$this->params['class'].'.php?action=js"></script>'."\n";
echo "</body>\n</html>\n";
} /* }}} */

View File

@ -31,7 +31,7 @@ require_once("class.Bootstrap.php");
*/
class SeedDMS_View_GroupMgr extends SeedDMS_Bootstrap_Style {
function css() { /* {{{ */
function js() { /* {{{ */
$selgroup = $this->params['selgroup'];
$strictformcheck = $this->params['strictformcheck'];

View File

@ -31,7 +31,7 @@ require_once("class.Bootstrap.php");
*/
class SeedDMS_View_UsrMgr extends SeedDMS_Bootstrap_Style {
function css() { /* {{{ */
function js() { /* {{{ */
$seluser = $this->params['seluser'];
?>
function checkForm()