correction bug, this bug was when you writte the time it can not be increased to 23, the same to the minutes, it showed many alerts
This commit is contained in:
@@ -450,13 +450,18 @@ leimnud.event.add(getField('SCH_START_TIME'), 'change', function() {
|
|||||||
|
|
||||||
if(parties[0]>23){
|
if(parties[0]>23){
|
||||||
msgBox('The time can not be increased to 23:59', 'alert');
|
msgBox('The time can not be increased to 23:59', 'alert');
|
||||||
getField('SCH_REPEAT_UNTIL').value='';
|
getField('SCH_START_TIME').value='';
|
||||||
getField('SCH_REPEAT_UNTIL').focus();
|
//getField('SCH_REPEAT_UNTIL').value='';
|
||||||
|
//getField('SCH_REPEAT_UNTIL').focus();
|
||||||
|
getField('SAVE').focus();
|
||||||
|
|
||||||
}
|
}
|
||||||
if(parties[1]>59){
|
if(parties[1]>59){
|
||||||
msgBox('The minutes can not be greater than 59', 'alert');
|
msgBox('The minutes can not be greater than 59', 'alert');
|
||||||
getField('SCH_REPEAT_UNTIL').value='';
|
getField('SCH_START_TIME').value='';
|
||||||
getField('SCH_REPEAT_UNTIL').focus();
|
//getField('SCH_REPEAT_UNTIL').value='';
|
||||||
|
//getField('SCH_REPEAT_UNTIL').focus();
|
||||||
|
getField('SAVE').focus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -676,6 +681,7 @@ function loadTasksDropdown(process,user_uid){
|
|||||||
oRPCTasks.callback = function(rpc){
|
oRPCTasks.callback = function(rpc){
|
||||||
document.getElementById("taskListDropdown").innerHTML = rpc.xmlhttp.responseText;
|
document.getElementById("taskListDropdown").innerHTML = rpc.xmlhttp.responseText;
|
||||||
// if the user is assigned to the task the default task value will be diferent than char
|
// if the user is assigned to the task the default task value will be diferent than char
|
||||||
|
|
||||||
if (getField('TAS_UID').value!='char'){
|
if (getField('TAS_UID').value!='char'){
|
||||||
showProperties();
|
showProperties();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user