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
| function processURL(url, success){ | |
| var id; | |
| if (url.indexOf('youtube.com') > -1) { | |
| id = url.split('/')[1].split('v=')[1].split('&')[0]; | |
| return processYouTube(id); | |
| } else if (url.indexOf('youtu.be') > -1) { | |
| id = url.split('/')[1]; | |
| return processYouTube(id); | |
| } else if (url.indexOf('vimeo.com') > -1) { |
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
| File = Backbone.Model.extend | |
| validate: (args) -> | |
| result | |
| if [email protected](args) | |
| result = 'File already in list' | |
| result | |
| Files = Backbone.Collection.extend | |
| model: File |
OlderNewer