/[smecontribs]/rpms/smeserver-dhcpmanager/contribs10/smeserver-dhcpmanager-2.0.4-Fix-JS-Error-on-load-and-typo-in-table-class-name.patch
ViewVC logotype

Annotation of /rpms/smeserver-dhcpmanager/contribs10/smeserver-dhcpmanager-2.0.4-Fix-JS-Error-on-load-and-typo-in-table-class-name.patch

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


Revision 1.1 - (hide annotations) (download)
Wed Feb 7 16:07:26 2024 UTC (9 months, 2 weeks ago) by brianr
Branch: MAIN
CVS Tags: smeserver-dhcpmanager-2_0_4-17_el7_sme, smeserver-dhcpmanager-2_0_4-16_el7_sme, smeserver-dhcpmanager-2_0_4-18_el7_sme, HEAD
* Wed Feb 07 2024 Brian Read <brianr@koozali.org> 2.0.4-16.sme
- Fix JS error on load and typo in table class name [SME: 12468]

1 brianr 1.1 diff -urN smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/themes/default/templates/dhcpd.html.ep smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/themes/default/templates/dhcpd.html.ep
2     --- smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/themes/default/templates/dhcpd.html.ep 2024-02-07 15:51:08.265451430 +0000
3     +++ smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/themes/default/templates/dhcpd.html.ep 2024-02-07 15:43:00.000000000 +0000
4     @@ -57,13 +57,13 @@
5     <tr>
6     <td>
7     %= button_to $c->l('dhcpd_CONNECTED_IP') => '/dhcpd1', onclick=>"showSpinnerLeases()", id=>"scanLeases"
8     - <button class ="btn btn-primary spinnerButtonOverlay" type = "submit" id="load" style="display:true">
9     + <button class ="btn btn-primary spinnerButtonOverlay" type = "submit" id="load" style="display:none">
10     Scanning <!--%= $c->l('dhcpd_CONNECTED_IP')-->
11     <span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
12     </button>
13     </td><td>
14     %= button_to $c->l('dhcpd_SCAN_YOUR_NETWORK') => '/dhcpd3', onclick=>"showSpinnerNetwork()", id=>"scanNetwork"
15     - <button class ="btn btn-primary spinnerButtonOverlay" type = "submit" id="loadingNetwork" style="display:true">
16     + <button class ="btn btn-primary spinnerButtonOverlay" type = "submit" id="loadingNetwork" style="display:none">
17     Scanning <!--%= $c->l('dhcpd_CONNECTED_IP')-->
18     <span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
19     </button>
20     @@ -181,8 +181,8 @@
21     </div>
22    
23     %= javascript begin
24     - document.getElementById("load").style.display="none";
25     - document.getElementById("loadingNetwork").style.display="none";
26     + if (document.getElementById("load")){document.getElementById("load").style.display="none";}
27     + if (document.getElementById("loadingNetwork")){document.getElementById("loadingNetwork").style.display="none";}
28    
29     function showSpinnerLeases(){
30     document.getElementById("scanLeases").style.display="none";
31     diff -urN smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep
32     --- smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep 2024-02-07 15:51:08.266451461 +0000
33     +++ smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep 2024-02-07 15:49:00.000000000 +0000
34     @@ -26,7 +26,7 @@
35     %= submit_button "$btn", class => 'action'
36     % end
37     <br>
38     - <table class="sme-border table-sort"><thead>
39     + <table class="sme-border TableSort"><thead>
40     <tr>
41     <th class='sme-border'>
42     %=l 'dhcpd_IP'
43     diff -urN smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_scan.html.ep smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_scan.html.ep
44     --- smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_scan.html.ep 2024-02-07 15:51:08.266451461 +0000
45     +++ smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_scan.html.ep 2024-02-07 15:49:00.000000000 +0000
46     @@ -10,7 +10,7 @@
47     </tr>
48    
49     </table>
50     - <table class="sme-border table-sort"><thead>
51     + <table class="sme-border TableSort"><thead>
52     <tr>
53     <th class='sme-border'>
54     %=l 'dhcpd_NETWORK_NAME'

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