add setting header of javascript file

This commit is contained in:
Uwe Steinmann 2016-02-17 11:43:19 +01:00
parent a691c9628c
commit a15b83dc99
9 changed files with 11 additions and 0 deletions

View File

@ -32,6 +32,7 @@ require_once("class.Bootstrap.php");
class SeedDMS_View_AddFile extends SeedDMS_Bootstrap_Style {
function js() { /* {{{ */
header('Content-Type: application/javascript');
?>
function checkForm()
{

View File

@ -33,6 +33,7 @@ class SeedDMS_View_Categories extends SeedDMS_Bootstrap_Style {
function js() { /* {{{ */
$selcat = $this->params['selcategory'];
header('Content-Type: application/javascript');
?>
$(document).ready( function() {
$( "#selector" ).change(function() {

View File

@ -32,6 +32,7 @@ require_once("class.Bootstrap.php");
class SeedDMS_View_DefaultKeywords extends SeedDMS_Bootstrap_Style {
function js() { /* {{{ */
header('Content-Type: application/javascript');
?>
function checkForm()
{

View File

@ -32,6 +32,7 @@ require_once("class.Bootstrap.php");
class SeedDMS_View_DropFolderChooser extends SeedDMS_Bootstrap_Style {
function js() { /* {{{ */
header('Content-Type: application/javascript');
?>
$('#fileselect').click(function(ev) {
attr_filename = $(ev.currentTarget).attr('filename');

View File

@ -33,6 +33,7 @@ class SeedDMS_View_EditDocument extends SeedDMS_Bootstrap_Style {
function js() { /* {{{ */
$strictformcheck = $this->params['strictformcheck'];
header('Content-Type: application/javascript');
$this->printKeywordChooserJs('form1');
?>
function checkForm()

View File

@ -32,6 +32,7 @@ require_once("class.Bootstrap.php");
class SeedDMS_View_EditUserData extends SeedDMS_Bootstrap_Style {
function js() { /* {{{ */
header('Content-Type: application/javascript');
?>
function checkForm()
{

View File

@ -50,6 +50,8 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
} /* }}} */
function js() { /* {{{ */
header('Content-Type: application/javascript');
?>
$(document).ready( function() {
$('#settingstab li a').click(function(event) {

View File

@ -53,6 +53,7 @@ $(document).ready( function() {
function js() { /* {{{ */
$strictformcheck = $this->params['strictformcheck'];
$dropfolderdir = $this->params['dropfolderdir'];
header('Content-Type: application/javascript');
$this->printDropFolderChooserJs("form1");
?>
function checkForm()

View File

@ -34,6 +34,8 @@ class SeedDMS_View_UsrMgr extends SeedDMS_Bootstrap_Style {
function js() { /* {{{ */
$seluser = $this->params['seluser'];
$strictformcheck = $this->params['strictformcheck'];
header('Content-Type: application/javascript');
?>
function checkForm()
{