This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import forms from 'cb-forms'; | |
| export default forms.Form.extend({ | |
| fields: { | |
| username: forms.CharField.create({ | |
| userStore: Ember.inject.service(), | |
| maxLength: 10, | |
| minLength: 2, | |
| validate(value){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Model | |
| number: Ember.computed(function(){ | |
| var cid = this.get('CID'), | |
| promise; | |
| promise = this.get('deal').then(function(deal){ | |
| var num = deal.get('contentNumbering')[cid]; | |
| return num ? num + '.' : ''; | |
| }); | |
| return DS.PromiseObject.create({promise: promise}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @class pdfView | |
| * @extends {Ember.View} | |
| */ | |
| var PDFView = Ember.View.extend({ | |
| tagName: 'canvas', | |
| /** | |
| * Url to pdf file. | |
| * @property src | |
| * @type {string} |
NewerOlder