|
|
@@ -1177,12 +1177,26 @@ class TableAjax extends ViewAjax {
|
|
|
if ('ref' === columnProps.type) showTooltip = false;
|
|
|
if ('ref' === columnProps.type) cellNode.css('padding', "3px")
|
|
|
if ('ref' === columnProps.type && priv.options.debug) console.log('renderRow rowPK('+rowPK+') columnProps', columnProps)
|
|
|
- if ('ref' === columnProps.type) cellNode.html('<a href="index.php?_route=ViewTableAjax' +
|
|
|
- '&namespace=' + columnProps.xsdRefNsPrefix.replace('__x3A__', '/') + '/' + columnProps.xsdRefType +
|
|
|
- '&backRefNS=' + priv.options.namespace +
|
|
|
- '&backRefPK=' + rowPK +
|
|
|
- '&backRefField=' + columnProps.column +
|
|
|
- '">przeglądaj</a>')
|
|
|
+ // if ('ref' === columnProps.type) cellNode.html('<a href="index.php?_route=ViewTableAjax' +
|
|
|
+ // '&namespace=' + columnProps.xsdRefNsPrefix.replace('__x3A__', '/') + '/' + columnProps.xsdRefType +
|
|
|
+ // '&backRefNS=' + priv.options.namespace +
|
|
|
+ // '&backRefPK=' + rowPK +
|
|
|
+ // '&backRefField=' + columnProps.column +
|
|
|
+ // '">przeglądaj</a>')
|
|
|
+ if ('ref' === columnProps.type) {
|
|
|
+ cellNode.html('<a onClick="return p5UI__tableAjaxOpenRefCell(' +
|
|
|
+ '\'' + columnProps.xsdRefNsPrefix.replace('__x3A__', '/') + '/' + columnProps.xsdRefType + '\', ' + // namespace
|
|
|
+ '\'' + priv.options.namespace + '\', ' + // backRefNS
|
|
|
+ '\'' + rowPK + '\', ' + // backRefPK
|
|
|
+ '\'' + columnProps.column + '\')' + // backRefField
|
|
|
+ '" ' +
|
|
|
+ 'href="index.php?_route=ViewTableAjax' +
|
|
|
+ '&namespace=' + columnProps.xsdRefNsPrefix.replace('__x3A__', '/') + '/' + columnProps.xsdRefType +
|
|
|
+ '&backRefNS=' + priv.options.namespace +
|
|
|
+ '&backRefPK=' + rowPK +
|
|
|
+ '&backRefField=' + columnProps.column +
|
|
|
+ '">przeglądaj</a>')
|
|
|
+ }
|
|
|
|
|
|
if (columnProps.xsdType && 'xsd:base64Binary' === columnProps.xsdType) {
|
|
|
cellCnt.empty();
|
|
|
@@ -3501,6 +3515,7 @@ class TableAjax extends ViewAjax {
|
|
|
'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
|
|
|
|
|
|
$fltrs = (method_exists($acl, 'getSpecialFilters')) ? $acl->getSpecialFilters() : null;
|
|
|
$jsonSpecialFilters = (!empty($fltrs)) ? json_encode($fltrs) : 'false';
|