server/bo_client/app/components/bo-doc-contributors.js
changeset 28 b0b56e0f8c7f
parent 27 a2342f26c9de
child 29 50702e620af4
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
     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 });