BUG 7472 Solved unnecessary fields in case list column sub-menu
The problem has solved adding script for changed the properties of sub-menu
This commit is contained in:
@@ -249,14 +249,14 @@ function cancelCase(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function callbackUnpauseCase (btn, text) {
|
function callbackUnpauseCase (btn, text) {
|
||||||
if ( btn == 'yes' ) {
|
if ( btn == 'yes' ) {
|
||||||
Ext.MessageBox.show({ progressText: TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:200} });
|
Ext.MessageBox.show({ progressText: TRANSLATIONS.ID_PROCESSING, wait:true,waitConfig: {interval:200} });
|
||||||
Ext.Ajax.request({
|
Ext.Ajax.request({
|
||||||
url: 'cases_Ajax',
|
url: 'cases_Ajax',
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
try {
|
try {
|
||||||
parent.updateCasesView();
|
parent.updateCasesView();
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
// Nothing to do
|
// 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] );
|
var myDate = new Date( myArrayDate[0], myArrayDate[1]-1, myArrayDate[2], myArrayHour[0], myArrayHour[1], myArrayHour[2] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(e){};
|
catch(e){};
|
||||||
|
|
||||||
return myDate;
|
return myDate;
|
||||||
}
|
}
|
||||||
@@ -398,12 +398,26 @@ Ext.onReady ( function() {
|
|||||||
if( c.dataIndex == 'CASE_NOTES_COUNT') c.renderer = renderNote;
|
if( c.dataIndex == 'CASE_NOTES_COUNT') c.renderer = renderNote;
|
||||||
}
|
}
|
||||||
|
|
||||||
//adding the hidden field DEL_INIT_DATE
|
//adding the hidden field DEL_INIT_DATE
|
||||||
readerFields.push ( {name: "DEL_INIT_DATE"});
|
readerFields.push ( {name: "DEL_INIT_DATE"});
|
||||||
readerFields.push ( {name: "APP_UID"});
|
readerFields.push ( {name: "APP_UID"});
|
||||||
readerFields.push ( {name: "DEL_INDEX"});
|
readerFields.push ( {name: "DEL_INDEX"});
|
||||||
|
|
||||||
|
|
||||||
|
for (i=0; i<columns.length; i++) {
|
||||||
|
if (columns[i].dataIndex == 'CASE_NOTES_COUNT') {
|
||||||
|
columns[i].header=_('ID_CASES_NOTES');
|
||||||
|
}
|
||||||
|
if (columns[i].dataIndex == 'CASE_SUMMARY') {
|
||||||
|
columns[i].header =_('ID_SUMMARY');
|
||||||
|
}
|
||||||
|
if (columns[i].dataIndex == 'USR_UID') {
|
||||||
|
columns[i].hideable = false;
|
||||||
|
}
|
||||||
|
if(columns[i].dataIndex == 'PREVIOUS_USR_UID') {
|
||||||
|
columns[i].hideable=false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var cm = new Ext.grid.ColumnModel({
|
var cm = new Ext.grid.ColumnModel({
|
||||||
defaults: {
|
defaults: {
|
||||||
sortable: true // columns are sortable by default
|
sortable: true // columns are sortable by default
|
||||||
|
|||||||
Reference in New Issue
Block a user