1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-25 01:02:05 +00:00

Grid error messages #ND-71 fixed.

New: Error messages for empty grids match the content
This commit is contained in:
Mark McDowall 2012-09-26 08:51:02 -07:00
parent b2c4f0201c
commit 253d0919e0
5 changed files with 13 additions and 3 deletions

View file

@ -122,7 +122,11 @@
}
} //Details
],
"aaSorting": [[5, 'desc']]
"aaSorting": [[5, 'desc']],
"oLanguage": {
"sEmptyTable": "Nothing has been downloaded, or results have been purged",
"sZeroRecords": "No items match the filter"
}
}).fnSetFilteringDelay(500);
});

View file

@ -31,6 +31,7 @@
.AddColumn(new Column().DataProperty("EpisodeId").Width("40px").Sortable(false).RenderFunction("return actions(row);"))
.AddColumn(new Column().DataProperty("Details").Sortable(false).Visible(false).RenderFunction("return details(row);"))
.AddSorting(3, SortDirection.Desc)
.Language(new Language().EmptyTable("No missing episodes found").ZeroRecords("No missing episodes match the filter"))
)
<script type="text/javascript">

View file

@ -22,7 +22,8 @@
.AddColumn(new Column().DataProperty("SearchError").Title("Error"))
.AddColumn(new Column().DataProperty("return actionColumn(source, type, val);", true).Sortable(false).Searchable(false))
.AddColumn(new Column().DataProperty("Details").Sortable(false).Visible(false).RenderFunction("return details(row);"))
.AddSorting(3, DataTables.Mvc.Core.Enum.SortDirection.Desc))
.AddSorting(3, DataTables.Mvc.Core.Enum.SortDirection.Desc)
.Language(new Language().EmptyTable("This seach yielded no results").ZeroRecords("No results match the filter")))
<script type="text/javascript">
function details(row) {

View file

@ -17,5 +17,6 @@
.AddColumn(new Column().DataProperty("SearchTime").Title("Time").Width("170px"))
.AddColumn(new Column().DataProperty("ReportCount").Title("Reports Found").Width("140px"))
.AddColumn(new Column().Image("/Content/Images/{Successful}.png", new { alt = "{Successful}", title = "{Successful}", @class = "gridImage" }, "{Successful}").Title("Successful").Width("110px"))
.AddSorting(1, SortDirection.Desc))
.AddSorting(1, SortDirection.Desc)
.Language(new Language().EmptyTable("No search results available").ZeroRecords("No results match the filter")))
}

View file

@ -197,6 +197,9 @@
"aaSorting": [[1, 'asc']],
"fnCreatedRow": function( nRow, aData, iDataIndex ) {
$(nRow).addClass(aData["SeriesId"].toString());
},
"oLanguage": {
"sEmptyTable": "No series have been added"
}
});