Grid error messages #ND-71 fixed.

New: Error messages for empty grids match the content
pull/2/head
Mark McDowall 12 years ago
parent b2c4f0201c
commit 253d0919e0

@ -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);
});

@ -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">

@ -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) {

@ -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")))
}

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

Loading…
Cancel
Save