|
@@ -519,38 +519,38 @@ class TableAjax extends ViewAjax {
|
|
|
UI::inlineJS(__FILE__ . '.TableAjax.js', [
|
|
UI::inlineJS(__FILE__ . '.TableAjax.js', [
|
|
|
'URI_BASE' => Request::getPathUri(),
|
|
'URI_BASE' => Request::getPathUri(),
|
|
|
]);
|
|
]);
|
|
|
- $filterInit = $this->_filterInit;
|
|
|
|
|
- $forceFilterInit = $this->_forceFilterInit;
|
|
|
|
|
- $pageSizes = $this->_pageSizes;
|
|
|
|
|
- $pageSize = $this->_pageSize;
|
|
|
|
|
- $rowFunctions = $this->_rowFunctions;//$this->_showRowFunctionsJson();
|
|
|
|
|
- $exportFields = Core_AclHelper::getExportFieldList($acl);
|
|
|
|
|
-
|
|
|
|
|
- UI::inlineJS(__FILE__ . '.hist.js', [
|
|
|
|
|
- 'TABLE_AJAX_NODE_ID' => $this->_htmlID,
|
|
|
|
|
- 'TABLE_AJAX_LABEL' => $this->getLabelHtml(),
|
|
|
|
|
- 'URL_HIST_BASE' => "index-ajax.php?_zasobID={$this->_zasobID}&_cls=" . __CLASS__ . "&_hash={$this->_htmlID}&_task=HIST", // &ID=...
|
|
|
|
|
- 'FUNCTION_HIST_ROUTE' => "TableAjax__HIST_Route",
|
|
|
|
|
- ]);
|
|
|
|
|
- UI::inlineJS(__FILE__ . '.create.js', [
|
|
|
|
|
- 'TABLE_AJAX_NODE_ID' => $this->_htmlID,
|
|
|
|
|
- 'TABLE_AJAX_LABEL' => $this->getLabelHtml(),
|
|
|
|
|
- 'NAMESPACE' => $acl->getNamespace(),
|
|
|
|
|
- 'FIRCE_FILTER_INIT' => $forceFilterInit,
|
|
|
|
|
- 'FUNCTION_CREATE_ROUTE' => "TableAjax__CREATE_Route",
|
|
|
|
|
- 'URL_CREATE_FORM_AJAX' => "{$this->syncUrl}&_hash={$this->_htmlID}&_task=createFormJson",
|
|
|
|
|
- ]);
|
|
|
|
|
- UI::inlineJS(__FILE__ . '.edit.js', [
|
|
|
|
|
- 'TABLE_AJAX_NODE_ID' => $this->_htmlID,
|
|
|
|
|
- 'TABLE_AJAX_LABEL' => $this->getLabelHtml(),
|
|
|
|
|
- 'NAMESPACE' => $acl->getNamespace(),
|
|
|
|
|
- 'FUNCTION_EDIT_ROUTE' => "TableAjax__EDIT_Route",
|
|
|
|
|
- 'URL_EDIT_FORM_AJAX' => "{$this->syncUrl}&_hash={$this->_htmlID}&_task=editFormJson&_primaryKey=",
|
|
|
|
|
- ]);
|
|
|
|
|
- UI::inlineJS(__FILE__ . '.openRef.js', []); // p5UI__tableAjaxOpenRefCell
|
|
|
|
|
-
|
|
|
|
|
- $specialFilters = (method_exists($acl, 'getSpecialFilters')) ? $acl->getSpecialFilters() : null;
|
|
|
|
|
- $className = __CLASS__;
|
|
|
|
|
|
|
+ $filterInit = $this->_filterInit;
|
|
|
|
|
+ $forceFilterInit = $this->_forceFilterInit;
|
|
|
|
|
+ $pageSizes = $this->_pageSizes;
|
|
|
|
|
+ $pageSize = $this->_pageSize;
|
|
|
|
|
+ $rowFunctions = $this->_rowFunctions;//$this->_showRowFunctionsJson();
|
|
|
|
|
+ $exportFields = Core_AclHelper::getExportFieldList($acl);
|
|
|
|
|
+
|
|
|
|
|
+ UI::inlineJS(__FILE__ . '.hist.js', [
|
|
|
|
|
+ 'TABLE_AJAX_NODE_ID' => $this->_htmlID,
|
|
|
|
|
+ 'TABLE_AJAX_LABEL' => $this->getLabelHtml(),
|
|
|
|
|
+ 'URL_HIST_BASE' => "index-ajax.php?_zasobID={$this->_zasobID}&_cls=" . __CLASS__ . "&_hash={$this->_htmlID}&_task=HIST", // &ID=...
|
|
|
|
|
+ 'FUNCTION_HIST_ROUTE' => "TableAjax__HIST_Route",
|
|
|
|
|
+ ]);
|
|
|
|
|
+ UI::inlineJS(__FILE__ . '.create.js', [
|
|
|
|
|
+ 'TABLE_AJAX_NODE_ID' => $this->_htmlID,
|
|
|
|
|
+ 'TABLE_AJAX_LABEL' => $this->getLabelHtml(),
|
|
|
|
|
+ 'NAMESPACE' => $acl->getNamespace(),
|
|
|
|
|
+ 'FIRCE_FILTER_INIT' => $forceFilterInit,
|
|
|
|
|
+ 'FUNCTION_CREATE_ROUTE' => "TableAjax__CREATE_Route",
|
|
|
|
|
+ 'URL_CREATE_FORM_AJAX' => "{$this->syncUrl}&_hash={$this->_htmlID}&_task=createFormJson",
|
|
|
|
|
+ ]);
|
|
|
|
|
+ UI::inlineJS(__FILE__ . '.edit.js', [
|
|
|
|
|
+ 'TABLE_AJAX_NODE_ID' => $this->_htmlID,
|
|
|
|
|
+ 'TABLE_AJAX_LABEL' => $this->getLabelHtml(),
|
|
|
|
|
+ 'NAMESPACE' => $acl->getNamespace(),
|
|
|
|
|
+ 'FUNCTION_EDIT_ROUTE' => "TableAjax__EDIT_Route",
|
|
|
|
|
+ 'URL_EDIT_FORM_AJAX' => "{$this->syncUrl}&_hash={$this->_htmlID}&_task=editFormJson&_primaryKey=",
|
|
|
|
|
+ ]);
|
|
|
|
|
+ UI::inlineJS(__FILE__ . '.openRef.js', []); // p5UI__tableAjaxOpenRefCell
|
|
|
|
|
+
|
|
|
|
|
+ $specialFilters = (method_exists($acl, 'getSpecialFilters')) ? $acl->getSpecialFilters() : null;
|
|
|
|
|
+ $className = __CLASS__;
|
|
|
UI::inlineJS(__FILE__ . '.init.js', [
|
|
UI::inlineJS(__FILE__ . '.init.js', [
|
|
|
'TABLE_AJAX_NODE_ID' => $this->_htmlID,
|
|
'TABLE_AJAX_NODE_ID' => $this->_htmlID,
|
|
|
'NAMESPACE' => $acl->getNamespace(),
|
|
'NAMESPACE' => $acl->getNamespace(),
|