BUG 8226 "Report Tables in ProcessMaker 2.0.35 is not..." SOLVED

- Report Tables in IE does not display correctly, transparent boxes appear
- Problem solved, now display reportTables in popup window when the browser is IE
This commit is contained in:
Victor Saisa Lopez
2012-07-30 16:28:08 -04:00
parent 9808608093
commit 7fce772674
2 changed files with 34 additions and 21 deletions

View File

@@ -23,9 +23,9 @@ var processmap=function(){
Wx = (lanzado=='dynaforms' || lanzado=='triggers' || lanzado=='outputs') ?600 : 500;
Hx = 460;
if(lanzado=='reportTables'){
Wx = _client.width-20; //900;
Hx = _client.height-15; //600;
if (lanzado == "reportTables") {
Wx = _client.width - 30;
Hx = _client.height - 15;
}
var bbk = {
@@ -157,16 +157,32 @@ var processmap=function(){
r.make();
}.extend(this),
reportTables:function(){
var url = "../pmTables?PRO_UID=" + this.options.uid;
var isIE = (navigator.userAgent.toLowerCase().indexOf("msie") != -1)? 1 : 0;
if (isIE == 1) {
this.panels.buildingBlocks.remove();
//var w = _client.width - 20;
//var h = _client.height - 300;
var w = screen.width - 150;
var h = screen.height - 300;
var windowAux = window.open(url, "reportTable", "width=" + w + ", height=" + h + ", resizable=no, toolbar=no, menubar=no, scrollbars=yes, status=no, location=no, left=" + ((screen.width / 2) - (w / 2)) + ", top=" + ((screen.height / 2) - (h / 2) + 50));
} else {
var panel = this.panels.buildingBlocks;
panel.addContentTitle('');
panel.addContentTitle("");
panel.clearContent();
var iframe=document.createElement('iframe');
iframe.setAttribute('id','reportTablesIframe');
iframe.src = '../pmTables?PRO_UID=' + this.options.uid;
iframe.style.border='0px';
iframe.style.width=_client.width-36;//'886px';
iframe.style.height=_client.height-60;//'564px';
var iframe = document.createElement("iframe");
iframe.setAttribute("id", "reportTablesIframe");
iframe.src = url;
iframe.frameBorder = 0;
iframe.style.width = _client.width - 40;
iframe.style.height = _client.height - 70;
panel.addContent(iframe);
}
}.extend(this),
dynaforms:function(){
var panel = this.panels.buildingBlocks;

View File

@@ -613,11 +613,7 @@ PMTableData = function()
{
var row = Ext.getCmp('infoGrid').getSelectionModel().getSelected();
var type = row.get('PRO_UID');
if ((Ext.isIE8) ||(Ext.isIE7)){
var url = 'pmTables/data?id='+row.get('ADD_TAB_UID')+'&type='+row.get('TYPE');
PopupCenter(url, 's', 800, 410);
return false;
}
//location.href = 'pmTables/data?id='+row.get('ADD_TAB_UID');
if (row.get('TYPE') != '') {
PMExt.info(_('ID_INFO'), _('ID_DATA_LIST_NOT_AVAILABLE_FOR_OLDVER'));
@@ -627,8 +623,8 @@ PMTableData = function()
win = new Ext.Window({
layout: 'fit',
width: 700,
height: 400,
title: ((type != '')? _('ID_REPORT_TABLE') : _('ID_PMTABLE')) +': '+ row.get('ADD_TAB_NAME'),
height:500,
modal: true,
maximizable: true,
constrain: true,
@@ -645,6 +641,7 @@ PMTableData = function()
}
}
});
win.show();
};