summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2016-01-28 15:08:31 +0000
committerTed Trask <ttrask01@yahoo.com>2016-01-28 15:08:31 +0000
commit1926c1d077608eacf031ced5aa6705b90cc858c9 (patch)
tree60c8b992097224c03e968934828bbb2cbf0de33c
parent31a57e9a7dd91b8decf7f6b4018fa3ae1f896682 (diff)
downloadacf-core-1926c1d077608eacf031ced5aa6705b90cc858c9.tar.bz2
acf-core-1926c1d077608eacf031ced5aa6705b90cc858c9.tar.xz
Fix password/listlockevents sorting by IP address
-rw-r--r--app/acf-util/password-listlockevents-html.lsp10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/acf-util/password-listlockevents-html.lsp b/app/acf-util/password-listlockevents-html.lsp
index 81ea7f6..bb81846 100644
--- a/app/acf-util/password-listlockevents-html.lsp
+++ b/app/acf-util/password-listlockevents-html.lsp
@@ -14,10 +14,16 @@ html = require("acf.html")
document.write('<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery.tablesorter.js"><\/script>');
}
</script>
-
+
+<script type="text/javascript">
+ if (typeof $.tablesorter.regex.ipv4Validate == 'undefined') {
+ document.write('<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/parsers/parser-network.js"><\/script>');
+ }
+</script>
+
<script type="text/javascript">
$(document).ready(function() {
- $("#list").tablesorter({ headers: {2:{sorter: 'ipAddress'}}, widgets: ['zebra']});
+ $("#list").tablesorter({widgets: ['zebra']});
});
</script>