blob: caa03b54779dbe0e74d20d61bafc3080b5c545fa (
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
|
define [
'backbone.marionette',
'templates/coding-rules'
], (
Marionette,
Templates
) ->
class CodingRulesHeaderView extends Marionette.ItemView
template: Templates['coding-rules-header']
events:
'click #coding-rules-new-search': 'newSearch'
'click #coding-rules-create-rule': 'createRule'
newSearch: ->
@options.app.router.emptyQuery()
createRule: ->
@options.app.createManualRule()
serializeData: ->
_.extend super,
'canWrite': @options.app.canWrite
|