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,6 +5,11 @@ require_once(KT_LIB_DIR . "/import/fsimportstorage.inc.php"); | ||
| 5 | require_once(KT_LIB_DIR . "/import/bulkimport.inc.php"); | 5 | require_once(KT_LIB_DIR . "/import/bulkimport.inc.php"); |
| 6 | require_once(KT_LIB_DIR . "/documentmanagement/observers.inc.php"); | 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 | require_once(KT_LIB_DIR . "/validation/dispatchervalidation.inc.php"); | 13 | require_once(KT_LIB_DIR . "/validation/dispatchervalidation.inc.php"); |
| 9 | 14 | ||
| 10 | class KTBulkImportFolderAction extends KTFolderAction { | 15 | class KTBulkImportFolderAction extends KTFolderAction { |
plugins/ktcore/folder/BulkUpload.php
| @@ -4,6 +4,10 @@ require_once(KT_LIB_DIR . "/actions/folderaction.inc.php"); | @@ -4,6 +4,10 @@ require_once(KT_LIB_DIR . "/actions/folderaction.inc.php"); | ||
| 4 | require_once(KT_LIB_DIR . "/import/zipimportstorage.inc.php"); | 4 | require_once(KT_LIB_DIR . "/import/zipimportstorage.inc.php"); |
| 5 | require_once(KT_LIB_DIR . "/import/bulkimport.inc.php"); | 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 | require_once(KT_LIB_DIR . "/validation/dispatchervalidation.inc.php"); | 11 | require_once(KT_LIB_DIR . "/validation/dispatchervalidation.inc.php"); |
| 8 | 12 | ||
| 9 | class KTBulkUploadFolderAction extends KTFolderAction { | 13 | class KTBulkUploadFolderAction extends KTFolderAction { |
templates/ktcore/folder/bulkImport.smarty
| 1 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')} | 1 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')} |
| 2 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Async.js')} | 2 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Async.js')} |
| 3 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Iter.js')} | 3 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Iter.js')} |
| 4 | +{$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DateTime.js')} | ||
| 4 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DOM.js')} | 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 | {capture assign=sJavascript} | 12 | {capture assign=sJavascript} |
| 7 | {literal} | 13 | {literal} |
| 8 | function swapInItem(elementId, req) { | 14 | function swapInItem(elementId, req) { |
| 15 | + | ||
| 9 | var cp = getElement(elementId); | 16 | var cp = getElement(elementId); |
| 17 | + | ||
| 10 | cp.innerHTML = req.responseText; | 18 | cp.innerHTML = req.responseText; |
| 11 | initialiseConditionalFieldsets(); | 19 | initialiseConditionalFieldsets(); |
| 12 | } | 20 | } |
| @@ -20,11 +28,12 @@ function swapElementFromRequest(elementId, url) { | @@ -20,11 +28,12 @@ function swapElementFromRequest(elementId, url) { | ||
| 20 | deff.addCallback(partial(swapInItem, elementId)); | 28 | deff.addCallback(partial(swapInItem, elementId)); |
| 21 | var cp = getElement(elementId); | 29 | var cp = getElement(elementId); |
| 22 | cp.innerHTML="loading..."; | 30 | cp.innerHTML="loading..."; |
| 31 | + | ||
| 23 | } | 32 | } |
| 24 | 33 | ||
| 25 | function getMetadataForType(id) { | 34 | function getMetadataForType(id) { |
| 26 | swapElementFromRequest('type_metadata_fields', | 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 | + id); | 37 | + id); |
| 29 | } | 38 | } |
| 30 | 39 |
templates/ktcore/folder/bulkUpload.smarty
| 1 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')} | 1 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Base.js')} |
| 2 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Async.js')} | 2 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Async.js')} |
| 3 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Iter.js')} | 3 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/Iter.js')} |
| 4 | +{$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DateTime.js')} | ||
| 4 | {$context->oPage->requireJSResource('thirdpartyjs/MochiKit/DOM.js')} | 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 | {capture assign=sJavascript} | 12 | {capture assign=sJavascript} |
| 7 | {literal} | 13 | {literal} |
| 8 | function swapInItem(elementId, req) { | 14 | function swapInItem(elementId, req) { |
| 15 | + | ||
| 9 | var cp = getElement(elementId); | 16 | var cp = getElement(elementId); |
| 17 | + | ||
| 10 | cp.innerHTML = req.responseText; | 18 | cp.innerHTML = req.responseText; |
| 11 | initialiseConditionalFieldsets(); | 19 | initialiseConditionalFieldsets(); |
| 12 | } | 20 | } |
| @@ -20,11 +28,12 @@ function swapElementFromRequest(elementId, url) { | @@ -20,11 +28,12 @@ function swapElementFromRequest(elementId, url) { | ||
| 20 | deff.addCallback(partial(swapInItem, elementId)); | 28 | deff.addCallback(partial(swapInItem, elementId)); |
| 21 | var cp = getElement(elementId); | 29 | var cp = getElement(elementId); |
| 22 | cp.innerHTML="loading..."; | 30 | cp.innerHTML="loading..."; |
| 31 | + | ||
| 23 | } | 32 | } |
| 24 | 33 | ||
| 25 | function getMetadataForType(id) { | 34 | function getMetadataForType(id) { |
| 26 | swapElementFromRequest('type_metadata_fields', | 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 | + id); | 37 | + id); |
| 29 | } | 38 | } |
| 30 | 39 |