mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
History grid will now be built from a json array sent to the view.
This commit is contained in:
parent
6ffc429ae0
commit
4af27cc4b5
8 changed files with 115 additions and 77 deletions
|
@ -30,13 +30,21 @@ $('.dataTable td:not(:last-child)').live('click', function () {
|
|||
}
|
||||
|
||||
else {
|
||||
oTable.fnOpen(nTr, fnFormatDetails(oTable, nTr), 'Details');
|
||||
oTable.fnOpen(nTr, fnFormatDetails(nTr), 'Details');
|
||||
$(nTr).addClass('details-opened');
|
||||
}
|
||||
});
|
||||
|
||||
//Datatables format display details
|
||||
function fnFormatDetails(oTable, nTr) {
|
||||
function fnFormatDetails(nTr) {
|
||||
var aData = oTable.fnGetData(nTr);
|
||||
return aData[aData.length - 1];
|
||||
return aData["Details"];
|
||||
}
|
||||
|
||||
//Create Image
|
||||
function createImageAjaxLink(url, image, alt, title, classes) {
|
||||
var html = "<a onclick=\"Sys.Mvc.AsyncHyperlink.handleClick(this, new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace });\" href=\"" + url + "\">" +
|
||||
"<img class=\"" + classes + "\" src=\"" + image + "\" title=\"" + title + "\" alt=\"" + alt + "\"></a>";
|
||||
|
||||
return html;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue