blob: 8322e90a61ccf7aa858e9cb9d608cf5a5b6c9b4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
define [
'templates/issue'
'common/popup'
], (
Templates
PopupView
) ->
$ = jQuery
class extends PopupView
template: Templates['issue-more-actions']
events: ->
'click .js-issue-action': 'action'
action: (e) ->
actionKey = $(e.currentTarget).data 'action'
@options.detailView.action actionKey
serializeData: ->
componentKey = encodeURIComponent @model.get 'component'
issueKey = encodeURIComponent @model.get 'key'
_.extend super,
permalink: "#{baseUrl}/component/index#component=#{componentKey}¤tIssue=#{issueKey}"
|