Index: javascript/vhliblogging.js
===================================================================
diff -u -r178 -r180
--- javascript/vhliblogging.js (.../vhliblogging.js) (revision 178)
+++ javascript/vhliblogging.js (.../vhliblogging.js) (revision 180)
@@ -8,13 +8,38 @@
height: "800"
});
- $(".openDetail").on("click", function () {
+ $(".detail").on("click", function () {
var id = $(this).attr("id");
+ var actie = $(this).find(".action").val();
var iframe = "";
-
- dialog.dialog("option", "title", id);
+
+ dialog.dialog("option", "title", actie);
dialog.dialog("open").html(iframe);
});
+
+ $("#log-table th .data-table-search").each(function () {
+ var title = $(this).text();
+ $(this).html("");
+ });
+
+ var dataTable = $("#log-table").DataTable({
+ "paging": false,
+ "ordering": false,
+ "info": false,
+
+ });
+
+ // Apply the search
+ dataTable.columns().every( function () {
+ var that = this;
+
+ $("input", this.header()).on("keyup change", function () {
+ if (that.search() !== this.value) {
+ that.search(this.value);
+ that.draw();
+ }
+ });
+ });
});