mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
More explicit file names
This commit is contained in:
parent
29e93162c2
commit
b5dabfe886
18 changed files with 7 additions and 6 deletions
25
client/components/lists/listHeader.js
Normal file
25
client/components/lists/listHeader.js
Normal 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');
|
||||
Loading…
Add table
Add a link
Reference in a new issue