diff options
| author | Kawandeep Virdee | 2013-11-10 10:34:57 -0500 |
|---|---|---|
| committer | Kawandeep Virdee | 2013-11-10 10:34:57 -0500 |
| commit | b8489c7cb7fbabb1186197bd546a6800bb55d0bf (patch) | |
| tree | ea011a29c6212007df6de97d06b8fa85a1f051cd /assets/js/models/sample.js | |
| parent | 5e473cda53d8ce6938eb832a378365f2f8b8f591 (diff) | |
| download | clip-play-b8489c7cb7fbabb1186197bd546a6800bb55d0bf.tar.bz2 | |
added thumbnail, fixed remove button colors
Diffstat (limited to 'assets/js/models/sample.js')
| -rw-r--r-- | assets/js/models/sample.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/assets/js/models/sample.js b/assets/js/models/sample.js index 2c87344..228454b 100644 --- a/assets/js/models/sample.js +++ b/assets/js/models/sample.js @@ -7,7 +7,8 @@ ClipPlay.Models.Sample = Backbone.Model.extend({ 'key': '', 'player': '', 'iframe': '', - 'timeout' : '' + 'timeout' : '', + 'thumbnail' : '' }, initialize: function() { var a = ClipPlay.Config['key_defaults'].shift(); @@ -20,26 +21,26 @@ ClipPlay.Models.Sample = Backbone.Model.extend({ var minutes = Math.floor(seconds / 60); seconds = Math.floor(seconds); var seconds = seconds - minutes * 60; - + if (seconds < 10) { seconds = '0' + seconds; } - + return { minutes: minutes, seconds: seconds }; }, - + start_in_minutes_and_seconds: function() { return this.in_minutes_and_seconds(this.get('start')); }, - + stop_in_minutes_and_seconds: function() { return this.in_minutes_and_seconds(this.get('stop')); }, - - + + play: function() { console.log('playing'); //play then pause |
