0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.222.98.91


Current Path : /var/www/html/kswu/custom_js/
Upload File :
Current File : /var/www/html/kswu/custom_js/PasswordPopup.js

function ValidateEditPassword()
 {	 
		$('#dialog').dialog('open');
		$("#dialog").data("width.dialog",300);		
		$path="html_modules/password_check.html";		
		$('#ui-dialog-title-dialog').html('Password');
		$('#dialog').html('');
		$('#dialog').load($path,function()
			{
			$("#login_password").focus();
			}
		); 
 }
  
 
 function CheckEnterPassword()
 {
   var row_pwd=document.getElementById('login_password').value;

	if( trim(document.getElementById('login_password').value) == '' )
		{
			alert('Please Enter the Password');
			document.getElementById('login_password').focus();
			return false;
		}
	if(row_pwd == getCookie('pswd'))
      {
		if(document.getElementById('module_name_for_save').value=='enableViewEmployeeSalary')
		{
			saveLedgerDetails();
			closePassword();	
			return true;
		}	   
	   	   
       }
	else
		{
		alert('Wrong Password');
		document.getElementById('login_password').value='';
		 return false;
		}	
	   
 }
	   
 function closePassword()
 {
  $('#dialog').dialog('close');
 }