Skip to content
Snippets Groups Projects
Commit ee912fb9 authored by Marco De Donno's avatar Marco De Donno
Browse files

Rename the login warning div

parent 334edb16
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@
</div>
</div>
<div id="icnml_login_error" class="icnml_box_error"></div>
<div id="warning" class="icnml_box_warning"></div>
<div id="icnml_login_warning" class="icnml_box_warning"></div>
<div class="icnml_button">
<a class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" id="login_button" role="button" aria-disabled="false">
<span class="ui-button-text">Login</span>
......@@ -151,7 +151,7 @@
$( "#icnml_login_error" ).text( data.message );
if( typeof data.time !== "undefined" )
$( "#warning" ).text( "Current server time: " + moment.utc( data.time * 1000 ).local().format( "MMMM Do YYYY, HH:mm:ss" ) );
$( "#icnml_login_warning" ).text( "Current server time: " + moment.utc( data.time * 1000 ).local().format( "MMMM Do YYYY, HH:mm:ss" ) );
}
}
},
......@@ -244,7 +244,7 @@
{
if( !window.crypto || !window.crypto.subtle || !window.TextEncoder || !window.TextDecoder)
{
$( "#warning" )
$( "#icnml_login_warning" )
.text( "Your browser does not support client-side cryptography. Please use compatible browser (Firefox, Chrome, Opera, Safari, ...) to protect your password before sending it to the ICNML server." );
$( "#username" ).prop( "disabled", true );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment