mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-22 00:44:00 +01:00
Changed Add Artist and View MB
This commit is contained in:
@@ -35,12 +35,12 @@
|
|||||||
%if type == 'album':
|
%if type == 'album':
|
||||||
<td id="albumname"><a href="${result['albumurl']}">${result['title']}</a></td>
|
<td id="albumname"><a href="${result['albumurl']}">${result['title']}</a></td>
|
||||||
%endif
|
%endif
|
||||||
<td id="artistname"><a href="${result['url']}" title="${result['uniquename']}">${result['uniquename']}</a></td>
|
<td id="artistname"><a href="addArtist?artistid=${result['id']}" title="${result['uniquename']}">${result['uniquename']}</a></td>
|
||||||
<td id="score"><div class="bar"><div class="score" style="width: ${result['score']}px">${result['score']}</div></div></td>
|
<td id="score"><div class="bar"><div class="score" style="width: ${result['score']}px">${result['score']}</div></div></td>
|
||||||
%if type == 'album':
|
%if type == 'album':
|
||||||
<td id="add"><a href="addReleaseById?rid=${result['albumid']}"><i class="fa fa-plus"></i> Add this album</a></td>
|
<td id="add"><a href="addReleaseById?rid=${result['albumid']}"><i class="fa fa-plus"></i> Add this album</a></td>
|
||||||
%else:
|
%else:
|
||||||
<td id="add"><a href="addArtist?artistid=${result['id']}"><i class="fa fa-plus"></i> Add this artist</a></td>
|
<td id="add"><a href="${result['url']}"></i> View on MusicBrainz</a></td>
|
||||||
%endif
|
%endif
|
||||||
</tr>
|
</tr>
|
||||||
%endfor
|
%endfor
|
||||||
@@ -57,10 +57,10 @@
|
|||||||
<%def name="javascriptIncludes()">
|
<%def name="javascriptIncludes()">
|
||||||
|
|
||||||
<script src="js/libs/jquery.dataTables.min.js"></script>
|
<script src="js/libs/jquery.dataTables.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function getArt() {
|
function getArt() {
|
||||||
$("table#searchresults_table tr td#albumart img").each(function(){
|
$("table#searchresults_table tr td#albumart img").each(function(){
|
||||||
var id = $(this).attr('title');
|
var id = $(this).attr('title');
|
||||||
var image = $(this);
|
var image = $(this);
|
||||||
if ( !image.hasClass('done') ) {
|
if ( !image.hasClass('done') ) {
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
"bDestroy": true,
|
"bDestroy": true,
|
||||||
"aoColumnDefs": [
|
"aoColumnDefs": [
|
||||||
{ 'bSortable': false, 'aTargets': [ 0,3 ] }
|
{ 'bSortable': false, 'aTargets': [ 0,3 ] }
|
||||||
],
|
],
|
||||||
"oLanguage": {
|
"oLanguage": {
|
||||||
"sLengthMenu":"Show _MENU_ results per page",
|
"sLengthMenu":"Show _MENU_ results per page",
|
||||||
"sEmptyTable": "No results",
|
"sEmptyTable": "No results",
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
resetFilters("album");
|
resetFilters("album");
|
||||||
}
|
}
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
initThisPage();
|
initThisPage();
|
||||||
});
|
});
|
||||||
$(window).load(function(){
|
$(window).load(function(){
|
||||||
initFancybox();
|
initFancybox();
|
||||||
|
|||||||
Reference in New Issue
Block a user