mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
no need to call printFolderChooserJs() anymore
This commit is contained in:
parent
f3c0c1847c
commit
b977d7c7fd
|
@ -34,9 +34,9 @@ class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style {
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/javascript');
|
header('Content-Type: application/javascript');
|
||||||
|
|
||||||
$this->printFolderChooserJs("form1");
|
// $this->printFolderChooserJs("form1");
|
||||||
$this->printFolderChooserJs("form2");
|
// $this->printFolderChooserJs("form2");
|
||||||
$this->printFolderChooserJs("form3");
|
// $this->printFolderChooserJs("form3");
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
|
|
|
@ -34,7 +34,7 @@ class SeedDMS_View_ImportFS extends SeedDMS_Bootstrap_Style {
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/javascript');
|
header('Content-Type: application/javascript');
|
||||||
|
|
||||||
$this->printFolderChooserJs("form1");
|
// $this->printFolderChooserJs("form1");
|
||||||
$this->printDropFolderChooserJs("form1", 1);
|
$this->printDropFolderChooserJs("form1", 1);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
|
@ -133,8 +133,8 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style {
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/javascript');
|
header('Content-Type: application/javascript');
|
||||||
|
|
||||||
$this->printFolderChooserJs("form1");
|
// $this->printFolderChooserJs("form1");
|
||||||
$this->printDocumentChooserJs("form2");
|
// $this->printDocumentChooserJs("form2");
|
||||||
$this->printClickDocumentJs();
|
$this->printClickDocumentJs();
|
||||||
$this->printClickFolderJs();
|
$this->printClickFolderJs();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
|
@ -34,7 +34,7 @@ class SeedDMS_View_MoveDocument extends SeedDMS_Bootstrap_Style {
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/javascript');
|
header('Content-Type: application/javascript');
|
||||||
|
|
||||||
$this->printFolderChooserJs("form1");
|
// $this->printFolderChooserJs("form1");
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
|
|
|
@ -34,7 +34,7 @@ class SeedDMS_View_MoveFolder extends SeedDMS_Bootstrap_Style {
|
||||||
function js() { /* {{{ */
|
function js() { /* {{{ */
|
||||||
header('Content-Type: application/javascript');
|
header('Content-Type: application/javascript');
|
||||||
|
|
||||||
$this->printFolderChooserJs("form1");
|
// $this->printFolderChooserJs("form1");
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
|
|
|
@ -57,7 +57,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder'));
|
parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder'));
|
||||||
|
|
||||||
$this->printFolderChooserJs("form1");
|
// $this->printFolderChooserJs("form1");
|
||||||
$this->printDeleteFolderButtonJs();
|
$this->printDeleteFolderButtonJs();
|
||||||
$this->printDeleteDocumentButtonJs();
|
$this->printDeleteDocumentButtonJs();
|
||||||
/* Add js for catching click on document in one page mode */
|
/* Add js for catching click on document in one page mode */
|
||||||
|
|
|
@ -66,7 +66,7 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
$this->printFolderChooserJs("form1");
|
// $this->printFolderChooserJs("form1");
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
|
|
|
@ -236,23 +236,6 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
<?php
|
<?php
|
||||||
foreach($extmgr->getExtensionConfiguration() as $extname=>$extconf) {
|
|
||||||
if($extconf['config']) {
|
|
||||||
foreach($extconf['config'] as $confkey=>$conf) {
|
|
||||||
switch($conf['type']) {
|
|
||||||
case 'select':
|
|
||||||
if(!empty($conf['internal'])) {
|
|
||||||
switch($conf['internal']) {
|
|
||||||
case "folders":
|
|
||||||
$this->printFolderChooserJs("form".$extname.$confkey, 'extensions['.$extname."][".$confkey."]");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
|
@ -587,7 +570,10 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "attributedefinitions":
|
case "attributedefinitions":
|
||||||
|
if(empty($conf['objtype']))
|
||||||
$recs = $dms->getAllAttributeDefinitions();
|
$recs = $dms->getAllAttributeDefinitions();
|
||||||
|
else
|
||||||
|
$recs = $dms->getAllAttributeDefinitions(explode(',', $conf['objtype']));
|
||||||
if($recs) {
|
if($recs) {
|
||||||
echo "<select class=\"chzn-select\"".($allowempty ? " data-allow-clear=\"true\"" : "")."\" name=\"extensions[".$extname."][".$confkey."][]\"".(!empty($conf['multiple']) ? " multiple" : "").(!empty($conf['size']) ? " size=\"".$conf['size']."\"" : "")." data-placeholder=\"".getMLText("select_attribute_value")."\">";
|
echo "<select class=\"chzn-select\"".($allowempty ? " data-allow-clear=\"true\"" : "")."\" name=\"extensions[".$extname."][".$confkey."][]\"".(!empty($conf['multiple']) ? " multiple" : "").(!empty($conf['size']) ? " size=\"".$conf['size']."\"" : "")." data-placeholder=\"".getMLText("select_attribute_value")."\">";
|
||||||
if($allowempty)
|
if($allowempty)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user