Commit db8597b39a41f81f75281c2ef51c440cba42b91e
1 parent
0fa9b4a6
- add missing require_once and JS statements in .php/.smarty respectively.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4639 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
4 changed files
with
29 additions
and
2 deletions
plugins/ktcore/folder/BulkImport.php
| ... | ... | @@ -5,6 +5,11 @@ require_once(KT_LIB_DIR . "/import/fsimportstorage.inc.php"); |
| 5 | 5 | require_once(KT_LIB_DIR . "/import/bulkimport.inc.php"); |
| 6 | 6 | require_once(KT_LIB_DIR . "/documentmanagement/observers.inc.php"); |
| 7 | 7 | |
| 8 | + | |
| 9 | +require_once(KT_LIB_DIR . "/widgets/FieldsetDisplayRegistry.inc.php"); | |
| 10 | +require_once(KT_LIB_DIR . "/widgets/fieldWidgets.php"); | |
| 11 | +require_once(KT_LIB_DIR . "/widgets/fieldsetDisplay.inc.php"); | |
| 12 | + | |
| 8 | 13 | require_once(KT_LIB_DIR . "/validation/dispatchervalidation.inc.php"); |
| 9 | 14 | |
| 10 | 15 | class KTBulkImportFolderAction extends KTFolderAction { | ... | ... |
plugins/ktcore/folder/BulkUpload.php
| ... | ... | @@ -4,6 +4,10 @@ require_once(KT_LIB_DIR . "/actions/folderaction.inc.php"); |
| 4 | 4 | require_once(KT_LIB_DIR . "/import/zipimportstorage.inc.php"); |
| 5 | 5 | require_once(KT_LIB_DIR . "/import/bulkimport.inc.php"); |
| 6 | 6 | |
| 7 | +require_once(KT_LIB_DIR . "/widgets/FieldsetDisplayRegistry.inc.php"); | |
| 8 | +require_once(KT_LIB_DIR . "/widgets/fieldWidgets.php"); | |
| 9 | +require_once(KT_LIB_DIR . "/widgets/fieldsetDisplay.inc.php"); | |
| 10 | + | |
| 7 | 11 | require_once(KT_LIB_DIR . "/validation/dispatchervalidation.inc.php"); |
| 8 | 12 | |
| 9 | 13 | class KTBulkUploadFolderAction extends KTFolderAction { | ... | ... |
templates/ktcore/folder/bulkImport.smarty
| 1 | 1 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')} |
| 2 | 2 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Async.js')} |
| 3 | 3 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Iter.js')} |
| 4 | +{$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DateTime.js')} | |
| 4 | 5 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DOM.js')} |
| 5 | 6 | |
| 7 | +{$context->oPage->requireJSResource('resources/js/taillog.js')} | |
| 8 | +{$context->oPage->requireJSResource('resources/js/conditional_usage.js')} | |
| 9 | + | |
| 10 | +{$context->oPage->requireCSSResource('resources/css/kt-treewidget.css')} | |
| 11 | + | |
| 6 | 12 | {capture assign=sJavascript} |
| 7 | 13 | {literal} |
| 8 | 14 | function swapInItem(elementId, req) { |
| 15 | + | |
| 9 | 16 | var cp = getElement(elementId); |
| 17 | + | |
| 10 | 18 | cp.innerHTML = req.responseText; |
| 11 | 19 | initialiseConditionalFieldsets(); |
| 12 | 20 | } |
| ... | ... | @@ -20,11 +28,12 @@ function swapElementFromRequest(elementId, url) { |
| 20 | 28 | deff.addCallback(partial(swapInItem, elementId)); |
| 21 | 29 | var cp = getElement(elementId); |
| 22 | 30 | cp.innerHTML="loading..."; |
| 31 | + | |
| 23 | 32 | } |
| 24 | 33 | |
| 25 | 34 | function getMetadataForType(id) { |
| 26 | 35 | swapElementFromRequest('type_metadata_fields', |
| 27 | - 'http://{/literal}{$config->get('KnowledgeTree/serverName')}{literal}/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php?fDocumentTypeID=' | |
| 36 | + '{/literal}{$rootUrl}{literal}/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php?fDocumentTypeID=' | |
| 28 | 37 | + id); |
| 29 | 38 | } |
| 30 | 39 | ... | ... |
templates/ktcore/folder/bulkUpload.smarty
| 1 | 1 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')} |
| 2 | 2 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Async.js')} |
| 3 | 3 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Iter.js')} |
| 4 | +{$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DateTime.js')} | |
| 4 | 5 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DOM.js')} |
| 5 | 6 | |
| 7 | +{$context->oPage->requireJSResource('resources/js/taillog.js')} | |
| 8 | +{$context->oPage->requireJSResource('resources/js/conditional_usage.js')} | |
| 9 | + | |
| 10 | +{$context->oPage->requireCSSResource('resources/css/kt-treewidget.css')} | |
| 11 | + | |
| 6 | 12 | {capture assign=sJavascript} |
| 7 | 13 | {literal} |
| 8 | 14 | function swapInItem(elementId, req) { |
| 15 | + | |
| 9 | 16 | var cp = getElement(elementId); |
| 17 | + | |
| 10 | 18 | cp.innerHTML = req.responseText; |
| 11 | 19 | initialiseConditionalFieldsets(); |
| 12 | 20 | } |
| ... | ... | @@ -20,11 +28,12 @@ function swapElementFromRequest(elementId, url) { |
| 20 | 28 | deff.addCallback(partial(swapInItem, elementId)); |
| 21 | 29 | var cp = getElement(elementId); |
| 22 | 30 | cp.innerHTML="loading..."; |
| 31 | + | |
| 23 | 32 | } |
| 24 | 33 | |
| 25 | 34 | function getMetadataForType(id) { |
| 26 | 35 | swapElementFromRequest('type_metadata_fields', |
| 27 | - 'http://{/literal}{$config->get('KnowledgeTree/serverName')}{literal}/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php?fDocumentTypeID=' | |
| 36 | + '{/literal}{$rootUrl}{literal}/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php?fDocumentTypeID=' | |
| 28 | 37 | + id); |
| 29 | 38 | } |
| 30 | 39 | ... | ... |