Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-44340

Remove unnecessary code from tree_js.jsp

    Details

      Description

      In the past we need to halt the 'drop:hit' event when a node was not draggable. Today Alloy UI can deal with it.

      So binding a function to 'drop:hit' is unnecessary.

      'drop:hit': function(event) {
      	var dropNode = event.drop.get('node').get('parentNode');
      
      	var dropTreeNode = dropNode.getData('tree-node');
      
      	if (!dropTreeNode.get('draggable')) {
      		event.halt();
      	}
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 32 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 M1