Changeset 8037


Ignore:
Timestamp:
May 25, 2022, 8:57:40 AM (6 months ago)
Author:
Nicklas Nordborg
Message:

References #2278: Improvements to login page for better extensions

Added a <div id="login-error"> that is always included in the HTML but hidden if there is no current error message.

Location:
branches/3.19-stable/www
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.19-stable/www/login.js

    r8035 r8037  
    307307   
    308308    // Send custom event to let extensions do stuff before submitting
     309    Doc.hide('login-error');
    309310    var evt = new CustomEvent('before-login', { cancelable: true, bubbles: true });
    310311    if (frm.dispatchEvent(evt))
  • branches/3.19-stable/www/main.jsp

    r8036 r8037  
    174174        <%
    175175      }
    176       if (error != null)
    177       {
    178         %>
    179         <div class="messagecontainer error" style="margin-top: 1em; margin-bottom: 1em;"><%=error%></div>
    180         <%
    181       }
    182176      %>
     177      <div id="login-error" class="messagecontainer error"
     178        style="margin-top: 1em; margin-bottom: 1em;<%=error==null?"display:none;":""%>">
     179        <%=error==null?"":error%>
     180      </div>
    183181      <table style="width: 100%; border-collapse: separate;">
    184182      <tr>
  • branches/3.19-stable/www/switch.jsp

    r8036 r8037  
    203203            <%=loginAction.getHelp() %>
    204204            </div>
     205            <div id="login-error" class="messagecontainer error"
     206              style="margin-top: 1em; margin-bottom: 1em; display:none;">
     207            </div>
    205208          </div>
    206209          </td>
     
    213216        <tr class="dynamic">
    214217          <th></th>
    215           <td></td>
     218          <td>
     219            <div id="login-error" class="messagecontainer error"
     220              style="margin-top: 1em; margin-bottom: 1em; display:none;">
     221            </div>
     222          </td>
    216223        </tr>
    217224        <%
Note: See TracChangeset for help on using the changeset viewer.