diff --git a/views/bootstrap/class.AttributeMgr.php b/views/bootstrap/class.AttributeMgr.php index ec2a739d1..1bbc529a6 100644 --- a/views/bootstrap/class.AttributeMgr.php +++ b/views/bootstrap/class.AttributeMgr.php @@ -33,6 +33,7 @@ class SeedDMS_View_AttributeMgr extends SeedDMS_Bootstrap_Style { function js() { /* {{{ */ $selattrdef = $this->params['selattrdef']; + header('Content-Type: application/javascript'); ?> $(document).ready( function() { @@ -45,6 +46,8 @@ $(document).ready( function() { }); }); printDeleteFolderButtonJs(); + $this->printDeleteDocumentButtonJs(); } /* }}} */ function info() { /* {{{ */ @@ -242,6 +245,8 @@ $(document).ready( function() { $attrdefs = $this->params['attrdefs']; $selattrdef = $this->params['selattrdef']; + $this->htmlAddHeader(''."\n", 'js'); + $this->htmlStartPage(getMLText("admin_tools")); $this->globalNavigation(); $this->contentStart();