From 42a9f8bf829e65674372db91a8968da2f35ff755 Mon Sep 17 00:00:00 2001 From: Carlos Pacha Date: Tue, 14 Dec 2010 19:57:57 +0000 Subject: [PATCH] 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 --- .../engine/xmlform/cases/cases_Scheduler_New.xml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/workflow/engine/xmlform/cases/cases_Scheduler_New.xml b/workflow/engine/xmlform/cases/cases_Scheduler_New.xml index 1b3589d1b..923f8bf4e 100644 --- a/workflow/engine/xmlform/cases/cases_Scheduler_New.xml +++ b/workflow/engine/xmlform/cases/cases_Scheduler_New.xml @@ -450,13 +450,18 @@ leimnud.event.add(getField('SCH_START_TIME'), 'change', function() { if(parties[0]>23){ msgBox('The time can not be increased to 23:59', 'alert'); - getField('SCH_REPEAT_UNTIL').value=''; - getField('SCH_REPEAT_UNTIL').focus(); + getField('SCH_START_TIME').value=''; + //getField('SCH_REPEAT_UNTIL').value=''; + //getField('SCH_REPEAT_UNTIL').focus(); + getField('SAVE').focus(); + } if(parties[1]>59){ msgBox('The minutes can not be greater than 59', 'alert'); - getField('SCH_REPEAT_UNTIL').value=''; - getField('SCH_REPEAT_UNTIL').focus(); + getField('SCH_START_TIME').value=''; + //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){ 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 (getField('TAS_UID').value!='char'){ showProperties(); } else { @@ -732,4 +738,4 @@ function gup( name ) } ]]> - \ No newline at end of file +