Sha256: 4c04b4d8e138027e06b4ad2c89bc6c722621cf254b04291e293ea236fa4b9040

Contents?: true

Size: 495 Bytes

Versions: 49

Compression:

Stored size: 495 Bytes

Contents

class Tawork.Views.TreeNodeTicketView extends Tawork.Views.TicketView
  events: ->
    _.extend {}, Tawork.Views.TicketView.prototype.events, {
      "click .node-handle": "toggle_tree_node"
    }

  toggle_tree_node: (event) ->
    $node_handle = $(event.target).closest(".node-handle")
    return if @$(".node-handle:first").get(0) != $node_handle.get(0)
    return if @$("> ol").length == 0
    @$el.toggleClass('mjs-nestedSortable-collapsed').toggleClass('mjs-nestedSortable-expanded')


  

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
tawork-0.0.9 app/assets/javascripts/backbone/views/tree_node_ticket.js.coffee
tawork-0.0.8 app/assets/javascripts/backbone/views/tree_node_ticket.js.coffee
tawork-0.0.7 app/assets/javascripts/backbone/views/tree_node_ticket.js.coffee
tawork-0.0.6 app/assets/javascripts/backbone/views/tree_node_ticket.js.coffee
tawork-0.0.5 app/assets/javascripts/backbone/views/tree_node_ticket.js.coffee
tawork-0.0.4 app/assets/javascripts/backbone/views/tree_node_ticket.js.coffee
tawork-0.0.3 app/assets/javascripts/backbone/views/tree_node_ticket.js.coffee
tawork-0.0.2 app/assets/javascripts/backbone/views/tree_node_ticket.js.coffee
tawork-0.0.1 app/assets/javascripts/backbone/views/tree_node_ticket.js.coffee