More explicit file names

This commit is contained in:
Maxime Quandalle 2015-08-28 02:21:42 +02:00
parent 29e93162c2
commit b5dabfe886
18 changed files with 7 additions and 6 deletions

View file

@ -0,0 +1,25 @@
BlazeComponent.extendComponent({
template: function() {
return 'listHeader';
},
editTitle: function(evt) {
evt.preventDefault();
var form = this.componentChildren('inlinedForm')[0];
var newTitle = form.getValue();
if ($.trim(newTitle)) {
Lists.update(this.currentData()._id, {
$set: {
title: newTitle
}
});
}
},
events: function() {
return [{
'click .js-open-list-menu': Popup.open('listAction'),
submit: this.editTitle
}];
}
}).register('listHeader');