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
| App.CategoryController = Ember.ObjectController.extend({ | |
| needs: ['documents'], | |
| uploads: new Array() | |
| }); | |
| App.DocumentController = Ember.ObjectController.extend({ | |
| isEditing:true, | |
| editDocument: function () { | |
| console.log('handling edit'); | |
| this.set('isEditing', true); |
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
| App.S3Upload = Ember.Object.extend({ | |
| progress: 0, | |
| state: "pending", | |
| bucket: 'your-bucket' | |
| complete: false, | |
| s3url: null, | |
| xhr: null, | |
| file: null, | |
| fileName: function() { | |
| var file = this.get('file'); |
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
| App.Show = DS.Model.extend({ | |
| title: DS.attr('string'), | |
| airing: DS.hasMany('App.Airing') | |
| }); | |
| App.Airing = DS.Model.extend({ | |
| channel: DS.attr('number'), | |
| show: DS.belongsTo('App.Show') | |
| }); |
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
| <?php | |
| //Configure Script | |
| $server = "http://50.200.83.14/"; //include trailing backslash | |
| $channelID = 3; //Cablecast Channel ID | |
| $displayDays = 0; //Number of Days to Display | |
| $showDetailsURL = "/?page_id=540&"; // Must end with a '?' or '&' | |
| date_default_timezone_set('America/New_York'); | |
| //End Configure | |
| //SOAP Client Setup |
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
| var clips = [ | |
| App.Clip.create({name: 'test one'}), | |
| App.Clip.create({name: 'test two'}), | |
| ]; | |
| var saveAll = function() { | |
| clips.map(function(clip) { | |
| return clip.save(); | |
| }); | |
| } |
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
| App.FilesValidController = App.PaginationController.extend({ | |
| filesBinding: 'content', | |
| goToPage: function(page) { | |
| var offset = page -1; | |
| this.set('pagerProps.offset', offset); | |
| //hack | |
| var files = App.DigitalFile.find({isValid:true, isOrphaned: false, offset:offset}); | |
| files.meta = this.get('pagerProps'); | |
| this.set('model', App.DigitalFile.find({isValid:true, isOrphaned: false, offset:offset})); | |
| } |
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
| embedCode: function() { | |
| var config = this.get('show.location.vodConfiguration'); | |
| if(!config || !config.get('isLoaded')) | |
| return ''; | |
| var fileName = this.get('fileName'), | |
| baseUrl = config.get('baseUrl'), | |
| template = config.get('embedTemplate'); |