Skip to content
Snippets Groups Projects
Commit f9c603d4 authored by Steffen Lindner's avatar Steffen Lindner
Browse files

JSCS for attachment.js

parent 4b76d1be
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,10 @@ views.Attachment = Backbone.Marionette.ItemView.extend({
// Each attachment will be shown as a li row
tagName: 'li',
template: "#mail-attachment-template",
template: '#mail-attachment-template',
events: {
"click .icon-delete" : "removeAttachment"
'click .icon-delete' : 'removeAttachment'
},
removeAttachment: function() {
......@@ -28,10 +28,10 @@ views.Attachments = Backbone.Marionette.CompositeView.extend({
childViewContainer: 'ul',
template: "#mail-attachments-template",
template: '#mail-attachments-template',
events: {
"click #mail_new_attachment" : "addAttachment"
'click #mail_new_attachment' : 'addAttachment'
},
initialize: function(options) {
......@@ -39,11 +39,11 @@ views.Attachments = Backbone.Marionette.CompositeView.extend({
},
addAttachment: function() {
var self = this;
var _this = this;
OC.dialogs.filepicker(
t('mail', 'Choose a file to add as attachment'),
function (path) {
self.collection.add([
function(path) {
_this.collection.add([
{
fileName: path
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment