Click to clear form (#1976)

This commit is contained in:
Christophe Maudoux 2021-02-20 19:39:54 +01:00
parent f7caff32c7
commit ba3cbfb33b
6 changed files with 12 additions and 12 deletions

View File

@ -278,19 +278,19 @@ Name Description
:doc:`Context switching<contextswitching>` [7]_\ |new| Switch context other users
:doc:`CrowdSec<crowdsec>` [8]_\ |new| CrowdSec bouncer
:doc:`Custom<plugincustom>` Write a custom plugin
:doc:`Decrypt value<decryptvalue>` [9]_\ |image35| Decrypt ciphered values
:doc:`Decrypt value<decryptvalue>` [9]_\ |beta| Decrypt ciphered values
:doc:`Display login history<loginhistory>` Display Success/Fails logins
:doc:`Force Authentication<forcereauthn>` Force authentication to access to Portal
:doc:`Global Logout<globallogout>` [10]_ Suggest to close all opened sessions at logout
:doc:`Grant Sessions<grantsession>` Rules to apply before allowing a user to open a session
:doc:`Impersonation<impersonation>` [11]_\ |new| Allow users to use another identity
:doc:`Find user<finduser>` [12]_\ |new| Search for user account
:doc:`Find user<finduser>` [12]_\ |beta| Search for user account
:doc:`Notifications system<notifications>` DIsplay a message during log in process
:doc:`Portal Status<status>` Experimental portal status page
:doc:`Public pages<public_pages>` Enable public pages system
:doc:`Refresh session API<refreshsessionapi>` [13]_ Plugin that provides an API to refresh a user session
:doc:`Reset password by mail<resetpassword>` Send a mail to reset its password
:doc:`Reset certificate by mail<resetcertificate>` [14]_\ |image37| Allow users to reset their certificate
:doc:`Reset certificate by mail<resetcertificate>` [14]_\ |beta| Allow users to reset their certificate
:doc:`REST services<restservices>` |new| REST server for :doc:`Proxy<authproxy>`
:doc:`SOAP services<soapservices>` |deprecated| SOAP server for :doc:`Proxy<authproxy>`
:doc:`Stay connected<stayconnected>` |new| Enable persistent connection on same browser
@ -621,10 +621,6 @@ by your language code):
.. |image26| image:: /icons/personal.png
.. |image27| image:: /icons/neotux.png
.. |image28| image:: /icons/personal.png
.. |image35| image:: /documentation/beta.png
:width: 35px
.. |image37| image:: /documentation/beta.png
:width: 35px
.. |image41| image:: /icons/gpg.png
.. |image46| image:: /icons/utilities.png
.. |image50| image:: /icons/kmultiple.png
@ -633,6 +629,10 @@ by your language code):
.. |image57| image:: /icons/jabber_protocol.png
.. |image59| image:: /icons/xeyes.png
.. |beta| image:: /documentation/beta.png
:width: 35px
:alt: beta
.. |new| image:: /documentation/new.png
:alt: new

View File

@ -548,7 +548,7 @@ $(window).on 'load', () ->
console.log 'Reset form'
$('#finduserForm').trigger('reset')
$('#finduserModal').on 'hidden.bs.modal', () ->
$('#closefinduserform').on 'click', () ->
console.log 'Clear modal'
$('#finduserForm').trigger('reset')

View File

@ -591,7 +591,7 @@ LemonLDAP::NG Portal jQuery scripts
console.log('Reset form');
return $('#finduserForm').trigger('reset');
});
$('#finduserModal').on('hidden.bs.modal', function() {
$('#closefinduserform').on('click', function() {
console.log('Clear modal');
return $('#finduserForm').trigger('reset');
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -39,7 +39,7 @@
</TMPL_LOOP>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal"><span trspan="close">Close</span></button>
<button id="closefinduserform" type="button" class="btn btn-secondary" data-dismiss="modal"><span trspan="close">Close</span></button>
<button id="finduserbutton" type="submit" class="btn btn-info" data-dismiss="modal">
<span class="fa fa-search"></span>
<span trspan="searchAccount">Search for an account</span>