Better lists clicks
This commit is contained in:
parent
bb8ada63de
commit
4b20891ee4
1 changed files with 5 additions and 5 deletions
|
@ -64,12 +64,12 @@
|
|||
<script id="dups-template" type="text/x-handlebars-template">
|
||||
<h2>Duplicates in {{pl_name}}</h2>
|
||||
{{message}}
|
||||
{{#list dups}}{{dup_trackname}} - {{dup_artist}}{{/list}}
|
||||
{{#list dups}}<div class="list-group-item">{{dup_trackname}} - {{dup_artist}}</div>{{/list}}
|
||||
</script>
|
||||
|
||||
<script id="playlists-template" type="text/x-handlebars-template">
|
||||
<h2>Playlists</h2>
|
||||
{{#list playlists}}<a class="pl_item" href="/pl/{{pl_uid}}/{{pl_id}}">{{pl_name}}</a>{{/list}}
|
||||
{{#list playlists}}<a class="pl_item list-group-item" href="/pl/{{pl_uid}}/{{pl_id}}">{{pl_name}}</a>{{/list}}
|
||||
</script>
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0-alpha.1/handlebars.min.js"></script>
|
||||
|
@ -93,13 +93,13 @@
|
|||
}
|
||||
|
||||
Handlebars.registerHelper('list', function (items, options) {
|
||||
var out = "<ul class='list-group'>";
|
||||
var out = "<div class='list-group'>";
|
||||
|
||||
for (var i = 0, l = items.length; i < l; i++) {
|
||||
out = out + "<li class='list-group-item'>" + options.fn(items[i]) + "</li>";
|
||||
out = out + options.fn(items[i]);
|
||||
}
|
||||
|
||||
return out + "</ul>";
|
||||
return out + "</div>";
|
||||
});
|
||||
|
||||
// Spinner options
|
||||
|
|
Loading…
Reference in a new issue