BUG 8226 solved the problem for IE8 and lowers.

This commit is contained in:
Alvaro Campos
2012-01-24 18:02:54 -04:00
parent 9f9fe7ec93
commit 1b81153d75
2 changed files with 13 additions and 3 deletions

View File

@@ -610,6 +610,11 @@ ExportPMTable = function(){
PMTableData = function()
{
var row = Ext.getCmp('infoGrid').getSelectionModel().getSelected();
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'));
@@ -687,3 +692,8 @@ function updateTag(value)
});
}
function PopupCenter(pageURL, title,w,h) {
var left = (Ext.getBody().getViewSize().width/3);
var top = (Ext.getBody().getViewSize().height/3);
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}

View File

@@ -16,7 +16,7 @@ var currentPagedTable = @#PAGED_TABLE_ID;
var outputdocsEditor;
function outputdocsAdd(){
popupWindow('@G::LoadTranslation(ID_OUTPUT_DOCUMENTS)', '@G::encryptlink(@#outputdocs_New)?PRO_UID=@%PRO_UID' , 600, 410);
popupWindow('@G::LoadTranslation(ID_OUTPUT_DOCUMENTS)', '@G::encryptlink(@#outputdocs_New)?PRO_UID=@%PRO_UID' , 600, 410);
}
function PopupCenter(pageURL, title,w,h) {
@@ -28,8 +28,8 @@ var outputdocsEditor;
}
function outputdocsEdit( uid, typ ) {
if( _BROWSER.name == 'msie' ) {
if (( _BROWSER.name == 'msie' ) && ( _BROWSER.version < '9' )) {
PopupCenter('../outputdocs/outputdocs_Edit?OUT_DOC_UID=' + uid, 's', 800, 410);
return false;
}