mirror of
https://github.com/fergalmoran/dss.git
synced 2026-03-29 17:05:04 +00:00
12 lines
398 B
CoffeeScript
Executable File
12 lines
398 B
CoffeeScript
Executable File
define ['app.lib/dssView', 'utils', 'text!/tpl/CommentItemView'],
|
|
(DssView, utils, Template) ->
|
|
class CommentItemView extends DssView
|
|
template: _.template(Template)
|
|
events: {
|
|
"click #delete-comment": "deleteComment"
|
|
}
|
|
|
|
deleteComment: ->
|
|
utils.messageBox "/dlg/DeleteCommentConfirm", =>
|
|
@model.destroy()
|
|
CommentItemView |