/[smeserver]/rpms/smeserver-manager/sme10/smeserver-manager-0.1.4-Move-dataTable-js-setup-to-seperate-file.patch
ViewVC logotype

Contents of /rpms/smeserver-manager/sme10/smeserver-manager-0.1.4-Move-dataTable-js-setup-to-seperate-file.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Feb 8 15:10:26 2024 UTC (8 months, 4 weeks ago) by brianr
Branch: MAIN
CVS Tags: smeserver-manager-0_1_4-31_el7_sme, smeserver-manager-0_1_4-34_el7_sme, smeserver-manager-0_1_4-29_el7_sme, smeserver-manager-0_1_4-33_el7_sme, smeserver-manager-0_1_4-27_el7_sme, smeserver-manager-0_1_4-25_el7_sme, smeserver-manager-0_1_4-26_el7_sme, smeserver-manager-0_1_4-28_el7_sme, smeserver-manager-0_1_4-32_el7_sme, HEAD
* Thu Feb 08 2024 Brian Read <brianr@koozali.org> 0.1.4-25.sme
- Move-dataTable-js-setup-to-seperate-file [SME: 12467]

1 diff -urN smeserver-manager-0.1.4.old/root/usr/share/smanager/themes/default/templates/layouts/default.html.ep smeserver-manager-0.1.4/root/usr/share/smanager/themes/default/templates/layouts/default.html.ep
2 --- smeserver-manager-0.1.4.old/root/usr/share/smanager/themes/default/templates/layouts/default.html.ep 2024-02-08 14:20:47.442092941 +0000
3 +++ smeserver-manager-0.1.4/root/usr/share/smanager/themes/default/templates/layouts/default.html.ep 2024-02-08 13:39:00.000000000 +0000
4 @@ -104,31 +104,8 @@
5 %= content 'js_swapClass'
6 %= content 'js_togglePassword'
7 % }
8 -%= javascript begin
9 - $(window).on('pageshow', function(){
10 - //alert('page show');
11 - $('.TableSort').DataTable({
12 - "stateSave": true,
13 - "retrieve": true,
14 - "responsive":true,
15 - "language": {
16 - "emptyTable": "No record found.",
17 - "processing":'" style="color: rgba(42, 43, 43, 1)">Loading... ',
18 - "error": function (xhr, error, thrown) {alert("Error occurred while loading data. Please try again.");}
19 - },
20 - "dom": 'Bfrtip',
21 - "buttons": ['copy', 'csv', 'excel', 'pdf', 'print']
22 -
23 - });
24 - $(".sme-modify-button").button({"icon": "ui-icon-pencil"});
25 - $(".sme-remove-button").button({"icon": "ui-icon-trash"});
26 - $(".sme-password-button").button({"icon": "ui-icon-refresh"});
27 - $(".sme-lock-button").button({"icon": "ui-icon-key"});
28 -
29 - });
30 -%end
31 -
32 -
33
34 +%= javascript '/js/sme-dataTable-setup.js'
35 +
36 </body>
37 </html>

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed