browse.ui.js 555 B

123456789101112131415161718192021222324
  1. window.getCellSpan = function(cell)
  2. {
  3. if(!['stage', 'required'].includes(cell.col.name) && cell.row.data.rowspan)
  4. {
  5. return {rowSpan: cell.row.data.rowspan};
  6. }
  7. }
  8. window.onRenderCell = function(result, {row, col})
  9. {
  10. if(result && col.name == 'actions')
  11. {
  12. if(row.data.builtin)
  13. {
  14. $.each(result[0].props.items, function(i, item)
  15. {
  16. if(!item.disabled) return;
  17. result[0].props.items[i].hint = builtinConfirm;
  18. });
  19. }
  20. }
  21. return result;
  22. }