Skip to content

Enhancements to sitetree js (LeftAndMain.Tree.js) #1606

Open
@sabina-talipova

Description

@sabina-talipova

Description

I'm not sure that we plan to update JS Legacy code, but just in case I'll add this list of improvements that were planned

  • updateNodesFromServer() - apply initially_opened config (See
    // TODO 'initially_opened' config doesn't apply here
    )
  • onaftersubmitform() - Trigger by implementing and inspecting "changed records" metadata sent by form submission response (as HTTP response headers) (See
    // TODO Trigger by implementing and inspecting "changed records" metadata
    )
  • Icon and page type hover support
  • Sorting of sub nodes (originally placed in context menu)
  • Automatic load of full subtree via ajax on node checkbox selection (minNodeCount = 0) to avoid doing partial selection with "hidden nodes" (unloaded markup)
  • Disallow drag'n'drop when node has "noChildren" set (see siteTreeHints)
  • Disallow moving of pages marked as deleted most likely by server response codes rather than clientside
  • "defaultChild" when creating a page (sitetreeHints)
  • Duplicate page (originally located in context menu)
  • Update tree node title information and modified state after reordering (response is a JSON array)

Tasks most likely not required after moving to a standalone tree:

  • Context menu - to be replaced by a bezel UI
  • Refresh form for selected tree node if affected by reordering (new parent relationship)
  • Cancel current form load via ajax when new load is requested (synchronous loading)

See

/**
* @todo Icon and page type hover support
* @todo Sorting of sub nodes (originally placed in context menu)
* @todo Automatic load of full subtree via ajax on node checkbox selection (minNodeCount = 0)
* to avoid doing partial selection with "hidden nodes" (unloaded markup)
* @todo Disallow drag'n'drop when node has "noChildren" set (see siteTreeHints)
* @todo Disallow moving of pages marked as deleted
* most likely by server response codes rather than clientside
* @todo "defaultChild" when creating a page (sitetreeHints)
* @todo Duplicate page (originally located in context menu)
* @todo Update tree node title information and modified state after reordering (response is a JSON array)
*
* Tasks most likely not required after moving to a standalone tree:
*
* @todo Context menu - to be replaced by a bezel UI
* @todo Refresh form for selected tree node if affected by reordering (new parent relationship)
* @todo Cancel current form load via ajax when new load is requested (synchronous loading)
*/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions