1 |
brianr |
1.1 |
diff -urN smeserver-manager-jsquery-1.0.old/root/usr/share/smanager/themes/default/public/css/sme-jquery-overrides.css smeserver-manager-jsquery-1.0/root/usr/share/smanager/themes/default/public/css/sme-jquery-overrides.css |
2 |
|
|
--- smeserver-manager-jsquery-1.0.old/root/usr/share/smanager/themes/default/public/css/sme-jquery-overrides.css 2024-02-08 14:01:08.723762916 +0000 |
3 |
|
|
+++ smeserver-manager-jsquery-1.0/root/usr/share/smanager/themes/default/public/css/sme-jquery-overrides.css 2024-02-08 15:01:12.664527285 +0000 |
4 |
|
|
@@ -10,3 +10,26 @@ |
5 |
|
|
height: 23px; |
6 |
|
|
} |
7 |
|
|
|
8 |
|
|
+.dataTables_wrapper .dataTables_filter { |
9 |
|
|
+ float: right; |
10 |
|
|
+ text-align: right; |
11 |
|
|
+} |
12 |
|
|
+ |
13 |
|
|
+.dataTables_wrapper .dataTables_length { |
14 |
|
|
+ float: left; |
15 |
|
|
+ margin-right:2%; |
16 |
|
|
+} |
17 |
|
|
+ |
18 |
|
|
+.dataTables_wrapper .dataTables_paginate { |
19 |
|
|
+ float: right; |
20 |
|
|
+} |
21 |
|
|
+.dataTables_wrapper .dataTables_info { |
22 |
|
|
+ clear: both; |
23 |
|
|
+} |
24 |
|
|
+ |
25 |
|
|
+/* If the buttons extension is enabled */ |
26 |
|
|
+.dataTables_wrapper .dt-buttons { |
27 |
|
|
+ float: left; |
28 |
|
|
+ margin-right: 10px; /* Or any desired space between buttons and search */ |
29 |
|
|
+} |
30 |
|
|
+ |
31 |
|
|
diff -urN smeserver-manager-jsquery-1.0.old/root/usr/share/smanager/themes/default/public/js/sme-dataTable-setup.js smeserver-manager-jsquery-1.0/root/usr/share/smanager/themes/default/public/js/sme-dataTable-setup.js |
32 |
|
|
--- smeserver-manager-jsquery-1.0.old/root/usr/share/smanager/themes/default/public/js/sme-dataTable-setup.js 1970-01-01 01:00:00.000000000 +0100 |
33 |
|
|
+++ smeserver-manager-jsquery-1.0/root/usr/share/smanager/themes/default/public/js/sme-dataTable-setup.js 2024-02-08 13:54:00.000000000 +0000 |
34 |
|
|
@@ -0,0 +1,27 @@ |
35 |
|
|
+//Additional JS for dataTable usesetup in SMEServer |
36 |
|
|
+// Options for the initial dataTable call found here: https://datatables.net/reference/option/ |
37 |
|
|
+$(window).on('pageshow', function(){ |
38 |
|
|
+ //alert('page show'); |
39 |
|
|
+ $('.TableSort').DataTable({ |
40 |
|
|
+ "stateSave": true, |
41 |
|
|
+ "retrieve": true, |
42 |
|
|
+ "responsive":true, |
43 |
|
|
+ "language": { |
44 |
|
|
+ "emptyTable": "No record found.", |
45 |
|
|
+ "processing":'" style="color: rgba(42, 43, 43, 1)">Loading... ', |
46 |
|
|
+ "error": function (xhr, error, thrown) {alert("Error occurred while loading data. Please try again.");} |
47 |
|
|
+ }, |
48 |
|
|
+ "dom": '<"top"lBf<"clear">>rt<"bottom"ip<"clear">>', |
49 |
|
|
+ "buttons": ['copy', 'csv', 'excel', 'pdf', 'print'], |
50 |
|
|
+ "headerCallback": function( thead, data, start, end, display ) { |
51 |
|
|
+ setup_table_row_buttons(); |
52 |
|
|
+ } |
53 |
|
|
+ }); |
54 |
|
|
+ |
55 |
|
|
+}); |
56 |
|
|
+ function setup_table_row_buttons(){ |
57 |
|
|
+ $(".sme-modify-button").button({"icon": "ui-icon-pencil"}); |
58 |
|
|
+ $(".sme-remove-button").button({"icon": "ui-icon-trash"}); |
59 |
|
|
+ $(".sme-password-button").button({"icon": "ui-icon-refresh"}); |
60 |
|
|
+ $(".sme-lock-button").button({"icon": "ui-icon-key"}); |
61 |
|
|
+ } |