@@ -297,51 +297,11 @@ In the last fourth row you need to speficy the global trigger event if you check
297297 <script src="assets/js/custom.min.js"></script>
298298 <script src="assets/js/bootstrap-multiselect.js"></script>
299299
300- <script type="text/javascript">
301- $(document).ready(function() {
302- $('#clientselection').multiselect();
303-
304- var select = document.getElementById('action');
305- var selectT = document.getElementById('trigger');
306- displayInput(select.value, "ban", "bantime");
307- displayInput2(selectT.value, "client", "clientselectiond", "threshold");
308-
309-
310-
311- var handleDataTableButtons = function() {
312- if ($("#rules").length) {
313- $("#rules").DataTable({
314- dom: '<"dataTables_exportbtn"B>ft',
315- paging: false,
316- order: [[ 0, "asc" ]],
317- bInfo: false,
318- buttons: [
319- {
320- text: 'Export',
321- extend: "csv",
322- className: "btn-sm btn-dark",
323- exportOptions: {
324- columns: [0,3,4,5]
325- }
326- },
327- ],
328- responsive: true
329- });
330- }
331- };
332-
333- TableManageButtons = function() {
334- "use strict";
335- return {
336- init: function() {
337- handleDataTableButtons();
338- }
339- };
340- }();
300+ <!-- Custom Datatables Script -->
301+ <script src="assets/js/custom/datatables-rules.js"></script>
302+ <!-- /Datatables -->
341303
342- TableManageButtons.init();
343- });
344-
304+ <script type="text/javascript">
345305 var hid1 = <?php echo ((isset ($ content ['editRule ' ]->id ) AND $ content ['editRule ' ]->global ) ? 'false ' : 'true ' ) ?> ;
346306 $("#global").click (function () {
347307
@@ -355,6 +315,5 @@ In the last fourth row you need to speficy the global trigger event if you check
355315 });
356316
357317 </script>
358- <!-- /Datatables -->
359318 </body>
360319</html>
0 commit comments