mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-26 11:37:33 +00:00
36 lines
1.2 KiB
JavaScript
Executable File
36 lines
1.2 KiB
JavaScript
Executable File
// Generated by CoffeeScript 1.4.0
|
|
(function() {
|
|
var __hasProp = {}.hasOwnProperty,
|
|
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
|
|
|
define(['app.lib/dssView', 'utils', 'text!/tpl/CommentItemView'], function(DssView, utils, Template) {
|
|
var CommentItemView;
|
|
CommentItemView = (function(_super) {
|
|
|
|
__extends(CommentItemView, _super);
|
|
|
|
function CommentItemView() {
|
|
return CommentItemView.__super__.constructor.apply(this, arguments);
|
|
}
|
|
|
|
CommentItemView.prototype.template = _.template(Template);
|
|
|
|
CommentItemView.prototype.events = {
|
|
"click #delete-comment": "deleteComment"
|
|
};
|
|
|
|
CommentItemView.prototype.deleteComment = function() {
|
|
var _this = this;
|
|
return utils.messageBox("/dlg/DeleteCommentConfirm", function() {
|
|
return _this.model.destroy();
|
|
});
|
|
};
|
|
|
|
return CommentItemView;
|
|
|
|
})(DssView);
|
|
return CommentItemView;
|
|
});
|
|
|
|
}).call(this);
|