mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-09 02:24:01 +01:00
Port over the existing track information (location, bit rate, format) from the tracks table to the alltracks table - based on TrackID. Updated album.html to use jquery and autoreload the track table, fixed the 'There was a error' typo in script.s
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
else:
|
||||
alternate_album_name = alternate_album['AlbumTitle'] + " (" + alternate_album['ReleaseCountry'] + ", " + alternate_album['ReleaseFormat'] + ")"
|
||||
%>
|
||||
<a href="switchAlbum?AlbumID=${album['AlbumID']}&ReleaseID=${alternate_album['ReleaseID']}">${alternate_album_name}</a><br>
|
||||
<a href="#" onclick="doAjaxCall('switchAlbum?AlbumID=${album['AlbumID']}&ReleaseID=${alternate_album['ReleaseID']}', $(this), 'table');" data-success="Switched release to: ${alternate_album_name}">${alternate_album_name}</a><br>
|
||||
%endfor
|
||||
%endif
|
||||
</div>
|
||||
|
||||
@@ -257,7 +257,7 @@ function doAjaxCall(url,elem,reload,form) {
|
||||
var dataError = $(elem).data('error');
|
||||
if (typeof dataError === "undefined") {
|
||||
// Standard Message when variable is not set
|
||||
var dataError = "There was a error";
|
||||
var dataError = "There was an error";
|
||||
}
|
||||
// Get Success & Error message from inline data, else use standard message
|
||||
var succesMsg = $("<div class='msg'><span class='ui-icon ui-icon-check'></span>" + dataSucces + "</div>");
|
||||
|
||||
Reference in New Issue
Block a user