mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
fix Content-Type for javascript code
This commit is contained in:
parent
5abe031222
commit
52344c0842
|
@ -32,7 +32,7 @@ require_once("class.Bootstrap.php");
|
||||||
class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style {
|
class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
|
|
||||||
$this->printFolderChooserJs("form1");
|
$this->printFolderChooserJs("form1");
|
||||||
$this->printFolderChooserJs("form2");
|
$this->printFolderChooserJs("form2");
|
||||||
|
|
|
@ -35,7 +35,7 @@ class SeedDMS_View_Charts extends SeedDMS_Bootstrap_Style {
|
||||||
$data = $this->params['data'];
|
$data = $this->params['data'];
|
||||||
$type = $this->params['type'];
|
$type = $this->params['type'];
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
$("<div id='tooltip'></div>").css({
|
$("<div id='tooltip'></div>").css({
|
||||||
|
|
|
@ -41,7 +41,7 @@ class SeedDMS_View_DocumentAccess extends SeedDMS_Bootstrap_Style {
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
?>
|
?>
|
||||||
function checkForm()
|
function checkForm()
|
||||||
{
|
{
|
||||||
|
|
|
@ -35,7 +35,7 @@ class SeedDMS_View_DocumentChooser extends SeedDMS_Bootstrap_Style {
|
||||||
$folder = $this->params['folder'];
|
$folder = $this->params['folder'];
|
||||||
$form = $this->params['form'];
|
$form = $this->params['form'];
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
$this->printNewTreeNavigationJs($folder->getID(), M_READ, 1, $form);
|
$this->printNewTreeNavigationJs($folder->getID(), M_READ, 1, $form);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ require_once("class.Bootstrap.php");
|
||||||
class SeedDMS_View_DocumentNotify extends SeedDMS_Bootstrap_Style {
|
class SeedDMS_View_DocumentNotify extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
?>
|
?>
|
||||||
function checkForm()
|
function checkForm()
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,7 +36,7 @@ class SeedDMS_View_FolderChooser extends SeedDMS_Bootstrap_Style {
|
||||||
$form = $this->params['form'];
|
$form = $this->params['form'];
|
||||||
$mode = $this->params['mode'];
|
$mode = $this->params['mode'];
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
$this->printNewTreeNavigationJs($rootfolderid, $mode, 0, $form);
|
$this->printNewTreeNavigationJs($rootfolderid, $mode, 0, $form);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ class SeedDMS_View_KeywordChooser extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
$form = $this->params['form'];
|
$form = $this->params['form'];
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
?>
|
?>
|
||||||
var targetObj = document.<?php echo $form ?>.keywords;
|
var targetObj = document.<?php echo $form ?>.keywords;
|
||||||
var myTA;
|
var myTA;
|
||||||
|
|
|
@ -70,7 +70,7 @@ class SeedDMS_View_LogManagement extends SeedDMS_Bootstrap_Style {
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
?>
|
?>
|
||||||
$(document).ready( function() {
|
$(document).ready( function() {
|
||||||
$('i.icon-arrow-up').on('click', function(e) {
|
$('i.icon-arrow-up').on('click', function(e) {
|
||||||
|
|
|
@ -32,7 +32,7 @@ require_once("class.Bootstrap.php");
|
||||||
class SeedDMS_View_MoveDocument extends SeedDMS_Bootstrap_Style {
|
class SeedDMS_View_MoveDocument extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
|
|
||||||
$this->printFolderChooserJs("form1");
|
$this->printFolderChooserJs("form1");
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
|
@ -48,7 +48,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
|
|
||||||
$this->printFolderChooserJs("form1");
|
$this->printFolderChooserJs("form1");
|
||||||
$this->printDeleteFolderButtonJs();
|
$this->printDeleteFolderButtonJs();
|
||||||
|
|
|
@ -121,12 +121,12 @@ class SeedDMS_View_Timeline extends SeedDMS_Bootstrap_Style {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json'),
|
||||||
echo json_encode($jsondata);
|
echo json_encode($jsondata);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
?>
|
?>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('#update').click(function(ev){
|
$('#update').click(function(ev){
|
||||||
|
|
|
@ -113,7 +113,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
$document = $this->params['document'];
|
$document = $this->params['document'];
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
$this->printTimelineJs('out.ViewDocument.php?action=timelinedata&documentid='.$document->getID(), 300, '', date('Y-m-d'));
|
$this->printTimelineJs('out.ViewDocument.php?action=timelinedata&documentid='.$document->getID(), 300, '', date('Y-m-d'));
|
||||||
$this->printDocumentChooserJs("form1");
|
$this->printDocumentChooserJs("form1");
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
|
@ -78,7 +78,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
||||||
$expandFolderTree = $this->params['expandFolderTree'];
|
$expandFolderTree = $this->params['expandFolderTree'];
|
||||||
$enableDropUpload = $this->params['enableDropUpload'];
|
$enableDropUpload = $this->params['enableDropUpload'];
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/javascript');
|
||||||
?>
|
?>
|
||||||
function folderSelected(id, name) {
|
function folderSelected(id, name) {
|
||||||
window.location = '../out/out.ViewFolder.php?folderid=' + id;
|
window.location = '../out/out.ViewFolder.php?folderid=' + id;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user