play-resources: support links in chapters
parent
6ad0285ad7
commit
3cc028e832
|
@ -155,7 +155,14 @@ function addPlayer(container, res, chapters) {
|
|||
}
|
||||
prevStart = start;
|
||||
var dd = $('<dd></dd>');
|
||||
dd.text(title);
|
||||
if (href) {
|
||||
var dd_a = $('<a></a>');
|
||||
dd_a.attr('href', href);
|
||||
dd_a.text(title);
|
||||
dd.append(dd_a);
|
||||
} else {
|
||||
dd.text(title);
|
||||
}
|
||||
dl.append(dd);
|
||||
});
|
||||
container.append(dl);
|
||||
|
|
Loading…
Reference in New Issue