Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #12831 (closed)

Opened 9 years ago

Closed 9 years ago

Web handle 'DEL' key is jsTree

Reported by: wmoore Owned by: wmoore
Priority: major Milestone: Unscheduled
Component: Web Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

The default behaviour for Delete key is not disabled for jsTree, so this ends up removing nodes but is not handled anywhere so the delete doesn't happen.

Need to catch the node removal event and pop-up the confirm dialog and handle delete accordingly.

This might be similar to this line in https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/tools/OmeroWeb/omeroweb/webclient/templates/webclient/data/containers.html#L927

.bind("move_node.jstree", function (e, data) {

but use "remove_node" and call OME.handleDelete(). And if the user clicked "Cancel" instead of confirm then we'd roll back.

Alternatively, simply disable the Delete key.

Change History (1)

comment:1 Changed 9 years ago by wmoore

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.69759 sec.)

We're Hiring!