Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriaWei committed Jan 4, 2018
1 parent 7a552e6 commit b8217e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/ZKEACMS.WebHost/wwwroot/js/dataTable.js
@@ -1,6 +1,9 @@
$(document).ready(function () {
function htmlEncode(val) {
return (val || "").replace(/</g, "&lt;").replace(/>/g, "&gt;");
if (typeof val == "string") {
return (val || "").replace(/</g, "&lt;").replace(/>/g, "&gt;");
}
return val;
}
$('.dataTable').each(function () {
var columns = [];
Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS.WebHost/wwwroot/js/dataTable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b8217e5

Please sign in to comment.