BUG 10198 "Errors in ext-all.js when creating Report Table" SOLVED

- Problem in IE8 with "Compatibility mode" (bug 10199)
- Problem in "Report Tables" to select checkbox in the list
- Solved problem "Compatibility mode" (bug 10199)
- Solved problem to select checkbox
- The QA team should test with:
    * Browsers IE7, IE8, IE9, Firefox and Chrome
    * Skins uxmodern and classic
* Available from version ProcessMaker-2.0.46
This commit is contained in:
Victor Saisa Lopez
2012-12-19 11:38:30 -04:00
parent cb12e04ad4
commit 736223079c

View File

@@ -8,9 +8,9 @@ var dataButton;
var store; var store;
var expander; var expander;
var cmodel; var cmodel;
var chkSelModel;
var infoGrid; var infoGrid;
var viewport; var viewport;
var smodel;
var rowsSelected; var rowsSelected;
var importOption; var importOption;
@@ -215,7 +215,7 @@ Ext.onReady(function(){
}), }),
listeners: { listeners: {
load: function(a,b){ load: function(a,b){
if (currentSelectedRow != '') { if (currentSelectedRow != -1) {
Ext.getCmp('infoGrid').getSelectionModel().selectRow(currentSelectedRow); Ext.getCmp('infoGrid').getSelectionModel().selectRow(currentSelectedRow);
Ext.getCmp('infoGrid').fireEvent('rowclick', Ext.getCmp('infoGrid'), currentSelectedRow) Ext.getCmp('infoGrid').fireEvent('rowclick', Ext.getCmp('infoGrid'), currentSelectedRow)
} }
@@ -223,7 +223,7 @@ Ext.onReady(function(){
} }
}); });
smodel = new Ext.grid.CheckboxSelectionModel({ chkSelModel = new Ext.grid.CheckboxSelectionModel({
listeners:{ listeners:{
selectionchange: function(sm){ selectionchange: function(sm){
if (sm.last !== false) { if (sm.last !== false) {
@@ -258,7 +258,7 @@ Ext.onReady(function(){
}); });
cmodelColumns = new Array(); cmodelColumns = new Array();
cmodelColumns.push(new Ext.grid.CheckboxSelectionModel()); cmodelColumns.push(chkSelModel);
cmodelColumns.push({id:'ADD_TAB_UID', dataIndex: 'ADD_TAB_UID', hidden:true, hideable:false}); cmodelColumns.push({id:'ADD_TAB_UID', dataIndex: 'ADD_TAB_UID', hidden:true, hideable:false});
cmodelColumns.push({dataIndex: 'ADD_TAB_TAG', hidden:true, hideable:false}); cmodelColumns.push({dataIndex: 'ADD_TAB_TAG', hidden:true, hideable:false});
cmodelColumns.push({header: _('ID_NAME'), dataIndex: 'ADD_TAB_NAME', width: 300, align:'left', renderer: function(v,p,r){ cmodelColumns.push({header: _('ID_NAME'), dataIndex: 'ADD_TAB_NAME', width: 300, align:'left', renderer: function(v,p,r){
@@ -329,7 +329,7 @@ Ext.onReady(function(){
store: store, store: store,
loadMask: true, loadMask: true,
cm: cmodel, cm: cmodel,
sm: smodel, sm: chkSelModel,
tbar: [ tbar: [
newButton, newButton,
editButton, editButton,
@@ -469,10 +469,12 @@ DeletePMTable = function() {
Ext.MessageBox.hide(); Ext.MessageBox.hide();
result = Ext.util.JSON.decode(resp.responseText); result = Ext.util.JSON.decode(resp.responseText);
Ext.getCmp('infoGrid').getStore().reload(); Ext.getCmp('infoGrid').getStore().reload();
if (result.success) { if (result.success) {
PMExt.notify(_("ID_DELETION_SUCCESSFULLY"), _("ID_ALL_RECORDS_DELETED_SUCESSFULLY")); currentSelectedRow = -1;
PMExt.notify(_("ID_DELETION_SUCCESSFULLY"), _("ID_ALL_RECORDS_DELETED_SUCESSFULLY"));
} else { } else {
PMExt.error( _('ID_ERROR'), result.message.nl2br()); PMExt.error(_("ID_ERROR"), result.message.nl2br());
} }
}, },
failure: function(obj, resp){ failure: function(obj, resp){