PM-3793 "Alert/update user profile if browser/computer..." SOLVED
Issue:
Alert/update user profile if browser/computer timezone is different to profile timezone
Cause:
New feature
Solution:
Added functionality
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dynaForm name="login" version="1.0" basedir="" xmlform_type="NORMAL" width="400px" enabletemplate="1">
|
||||
<BROWSER_TIME_ZONE_OFFSET type="hidden" />
|
||||
|
||||
<TITLE type="title">
|
||||
<en><![CDATA[Login]]></en>
|
||||
</TITLE>
|
||||
@@ -38,34 +40,34 @@ function getElementsByClassNameIE8(node, classname) {
|
||||
window.onload= function(){
|
||||
var inputUser,
|
||||
inputPass;
|
||||
if(document.getElementById('form[USR_USERNAME]').placeholder == undefined && document.getElementById('form[BSUBMIT]').classList == undefined){
|
||||
if(document.getElementById('form[USR_USERNAME]').placeholder == undefined && document.getElementById('form[BSUBMIT]').classList == undefined){
|
||||
document.getElementById('form[USR_USERNAME]').value = _('ID_USER');
|
||||
document.getElementById('form[USR_PASSWORD_MASK]').value = _('ID_PASSWORD');
|
||||
document.getElementById('form[BSUBMIT]').className = "button-login-success";
|
||||
inputUser = document.getElementById('form[USR_USERNAME]');
|
||||
inputPass = document.getElementById('form[USR_PASSWORD_MASK]');
|
||||
|
||||
|
||||
inputUser.attachEvent("onclick", function (){
|
||||
if(_('ID_USER') == inputUser.value){
|
||||
inputUser.value="";
|
||||
}
|
||||
}
|
||||
});
|
||||
inputUser.attachEvent("onblur", function (){
|
||||
if(inputUser.value == ""){
|
||||
inputUser.value=_('ID_USER');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
inputPass.attachEvent("onclick", function (){
|
||||
if(_('ID_PASSWORD') == inputPass.value){
|
||||
inputPass.value="";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
inputPass.attachEvent("onblur", function (){
|
||||
if(inputPass.value == ""){
|
||||
inputPass.value = _('ID_PASSWORD');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -74,7 +76,7 @@ window.onload= function(){
|
||||
document.getElementById('form[USR_PASSWORD_MASK]').placeholder = _('ID_PASSWORD');
|
||||
document.getElementById('form[BSUBMIT]').classList.remove('module_app_button___gray');
|
||||
document.getElementById('form[BSUBMIT]').classList.add('button-login-success');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// enable/disable forgot password link
|
||||
@@ -158,8 +160,9 @@ leimnud.event.add(document.getElementById('form[BSUBMIT]'), 'click', function()
|
||||
|
||||
document.getElementById("form[USR_PASSWORD]").value = document.getElementById("form[USR_PASSWORD_MASK]").value;
|
||||
document.getElementById("form[USR_PASSWORD_MASK]").value = "";
|
||||
document.getElementById("form[BROWSER_TIME_ZONE_OFFSET]").value = getBrowserTimeZoneOffset();
|
||||
if(!navigator.userAgent.indexOf("MSIE 8.0")>0)
|
||||
document.getElementById("form[USR_PASSWORD_MASK]").setAttribute("type", "text");
|
||||
document.getElementById("form[USR_PASSWORD_MASK]").setAttribute("type", "text");
|
||||
document.login.submit();
|
||||
}.extend(document.getElementById('form[BSUBMIT]')));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user