diff -r eadaf0b8f02e -r a9b98b16b053 server/bo_client/app/components/bo-doc-contributors.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/bo_client/app/components/bo-doc-contributors.js Tue Dec 01 13:33:08 2015 +0100 @@ -0,0 +1,21 @@ +import Ember from 'ember'; +import _ from 'lodash/lodash'; + +export default Ember.Component.extend({ + + actions: { + toggleEditContributors : function() { + console.log("EDIT CONTRIBUTORS"); + // var contributors = _.clone(this.get('document').get('contributors')); + // console.log("EDIT CONTRIBUTPRS", contributors); + // contributors.push({ + // name: "Hello world", + // url: null, + // role: 'http://www.language-archives.org/OLAC/1.1/annotator' + // }); + // this.get('document').set('contributors', contributors); + Ember.$('#doc-contributors-table-pane').slideToggle(); + Ember.$('#doc-contributors-list-pane').slideToggle(); + } + } +});