From 4b4e423adb87dee44eafdab026517667dad1762a Mon Sep 17 00:00:00 2001 From: Douglas Medrano Chura Date: Mon, 29 Aug 2011 16:47:06 -0400 Subject: [PATCH] BUG 7472 Solved unnecessary fields in case list column sub-menu The problem has solved adding script for changed the properties of sub-menu --- workflow/engine/templates/cases/casesList.js | 34 ++++++++++++++------ 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/workflow/engine/templates/cases/casesList.js b/workflow/engine/templates/cases/casesList.js index cff28d456..e383f9a26 100755 --- a/workflow/engine/templates/cases/casesList.js +++ b/workflow/engine/templates/cases/casesList.js @@ -249,14 +249,14 @@ function cancelCase(){ } function callbackUnpauseCase (btn, text) { - if ( btn == 'yes' ) { + if ( btn == 'yes' ) { Ext.MessageBox.show({ progressText: TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:200} }); Ext.Ajax.request({ url: 'cases_Ajax', success: function(response) { - try { - parent.updateCasesView(); - } + try { + parent.updateCasesView(); + } catch (e) { // Nothing to do } @@ -353,7 +353,7 @@ Ext.onReady ( function() { var myDate = new Date( myArrayDate[0], myArrayDate[1]-1, myArrayDate[2], myArrayHour[0], myArrayHour[1], myArrayHour[2] ); } } - catch(e){}; + catch(e){}; return myDate; } @@ -398,12 +398,26 @@ Ext.onReady ( function() { if( c.dataIndex == 'CASE_NOTES_COUNT') c.renderer = renderNote; } - //adding the hidden field DEL_INIT_DATE - readerFields.push ( {name: "DEL_INIT_DATE"}); - readerFields.push ( {name: "APP_UID"}); - readerFields.push ( {name: "DEL_INDEX"}); - + //adding the hidden field DEL_INIT_DATE + readerFields.push ( {name: "DEL_INIT_DATE"}); + readerFields.push ( {name: "APP_UID"}); + readerFields.push ( {name: "DEL_INDEX"}); + for (i=0; i