20
|
1 |
import Ember from 'ember'; |
|
2 |
import _ from 'lodash/lodash'; |
|
3 |
|
|
4 |
export default Ember.Component.extend({ |
|
5 |
|
|
6 |
actions: { |
|
7 |
toggleEditContributors : function() { |
|
8 |
console.log("EDIT CONTRIBUTORS"); |
|
9 |
// var contributors = _.clone(this.get('document').get('contributors')); |
|
10 |
// console.log("EDIT CONTRIBUTPRS", contributors); |
|
11 |
// contributors.push({ |
|
12 |
// name: "Hello world", |
|
13 |
// url: null, |
|
14 |
// role: 'http://www.language-archives.org/OLAC/1.1/annotator' |
|
15 |
// }); |
|
16 |
// this.get('document').set('contributors', contributors); |
|
17 |
Ember.$('#doc-contributors-table-pane').slideToggle(); |
|
18 |
Ember.$('#doc-contributors-list-pane').slideToggle(); |
|
19 |
} |
|
20 |
} |
|
21 |
}); |