TableAjax.php.openRef.js 1.1 KB

123456789101112131415161718192021222324
  1. // @require variables:
  2. // if ('undefined' === typeof TABLE_AJAX_NODE_ID) throw "Missing TABLE_AJAX_NODE_ID"; // $this->_htmlID,
  3. function p5UI__tableAjaxOpenRefCell(namespace, backRefNS, backRefPK, backRefField) {
  4. // console.log('p5UI__tableAjaxOpenRefCell', {namespace: namespace, backRefNS: backRefNS, backRefPK: backRefPK, backRefField: backRefField})
  5. // return false;
  6. // <a onClick="return p5UI__tableAjaxOpenRefCell(' +
  7. // '\'' + columnProps.xsdRefNsPrefix.replace('__x3A__', '/') + '/' + columnProps.xsdRefType + '\', ' + // namespace
  8. // '\'' + priv.options.namespace + '\', ' + // backRefNS
  9. // '\'' + rowPK + '\', ' + // backRefPK
  10. // '\'' + columnProps.column + '\')' + // backRefField
  11. // '" ' +
  12. // 'href="index.php?_route=ViewTableAjax' +
  13. // '&namespace=' + columnProps.xsdRefNsPrefix.replace('__x3A__', '/') + '/' + columnProps.xsdRefType +
  14. // '&backRefNS=' + priv.options.namespace +
  15. // '&backRefPK=' + rowPK +
  16. // '&backRefField=' + columnProps.column +
  17. // '">przeglądaj</a>')
  18. return true;
  19. }
  20. global.p5UI__tableAjaxOpenRefCell = p5UI__tableAjaxOpenRefCell