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 #8709 (closed)

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

Web actions enabled from jsTree

Reported by: wmoore Owned by: wmoore
Priority: major Milestone: OMERO-4.4
Component: Web Version: n.a.
Keywords: n.a. Cc: atarkowska, cxallan
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2012-05-08 (14)

Description

Once we have classes on all jsTree nodes to indicate whether we can Edit, Delete, Link etc #8708 we need to update various actions based on selected nodes.

Toolbar actions on selected nodes:

  • Create, Cut, Paste - only if 'canLink'
  • Delete - only if 'canDelete'

Right-click actions on nodes:

  • Create, Cut, Paste - only if 'canLink'
  • Delete - only if 'canDelete'

Drag:

  • Drag if 'canLink'

{{{ "start_drag" : function (obj) {return obj.hasClass('canLink');},

Change History (5)

comment:1 Changed 12 years ago by wmoore

  • Status changed from new to accepted

comment:2 Changed 12 years ago by wmoore

  • Remaining Time changed from 1 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

comment:3 Changed 12 years ago by Will Moore <will@…>

(In [6dd12f25906bf39d2e2b8dcf160eba9fcb071e14/ome.git] on branch develop) Toolbar enabled wrt selected.canLink() & canDelete(). See #8709

comment:4 Changed 12 years ago by Will Moore <will@…>

(In [e088cd232665ea39b64f3e33c37e8fcf6a8fc9f9/ome.git] on branch develop) jsTree nodes 'start_drag' === canLink(). See #8709

Removed other actions from the nodes config, since these are specified elsewhere for
toolbar or right-click actions.

comment:5 Changed 12 years ago by Will Moore <will@…>

(In [c72c4d2bb9b790272e36f367625fbc7d093997b0/ome.git] on branch develop) Right-click jsTree menu enabled with canLink() etc. See #8709

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.68413 sec.)

We're Hiring!