|
1005
|
1 |
IriSP.Widgets.Title = function(player, config) { |
|
|
2 |
IriSP.Widgets.Widget.call(this, player, config); |
|
|
3 |
} |
|
|
4 |
|
|
|
5 |
IriSP.Widgets.Title.prototype = new IriSP.Widgets.Widget(); |
|
|
6 |
|
|
|
7 |
IriSP.Widgets.Title.prototype.defaults = { |
|
|
8 |
media_title: false |
|
|
9 |
} |
|
|
10 |
|
|
|
11 |
IriSP.Widgets.Title.prototype.template = |
|
|
12 |
'<div class="Ldt-TitleWidget"><h2>{{#media_title}}{{media.title}}{{/media_title}}{{^media_title}}{{source.title}}{{/media_title}}</h2></div>'; |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
IriSP.Widgets.Title.prototype.draw = function() { |
|
|
16 |
this.renderTemplate(); |
|
|
17 |
} |