fix 1423 view proces map legends in internet explorer

This commit is contained in:
jonathan
2015-03-04 17:25:52 -04:00
parent 098d4efbd9
commit 681dfff07d

View File

@@ -30,7 +30,14 @@ function formatAMPM(date, initVal) {
minutes = minutes < 10 ? '0'+minutes : minutes; minutes = minutes < 10 ? '0'+minutes : minutes;
var strTime = hours + ':' + minutes + ' ' + ampm; var strTime = hours + ':' + minutes + ' ' + ampm;
return strTime; return strTime;
} };
function isBrowserIE(){
if(navigator.appName.indexOf("Internet Explorer")!=-1){ //yeah, he's using IE
return true;
}
return false;
};
Ext.onReady(function(){ Ext.onReady(function(){
openToRevisePanel = function() { openToRevisePanel = function() {
@@ -1531,20 +1538,24 @@ Ext.onReady(function(){
TabPanel.setActiveTab(tabId); TabPanel.setActiveTab(tabId);
} }
else { else {
TabPanel.add({ if(!isBrowserIE()){
id: tabId, TabPanel.add({
title: menuSelectedTitle[name], id: tabId,
frameConfig: {name: name + 'Frame', id: name + 'Frame'}, title: menuSelectedTitle[name],
defaultSrc: uri, frameConfig: {name: name + 'Frame', id: name + 'Frame'},
loadMask: {msg: _('ID_LOADING_GRID') + '...'}, defaultSrc: uri,
autoWidth: true, loadMask: {msg: _('ID_LOADING_GRID') + '...'},
closable: true, autoWidth: true,
autoScroll: true, closable: true,
bodyStyle: {height: (PMExt.getBrowser().screen.height - 60) + 'px', overflow: 'auto'} autoScroll: true,
}).show(); bodyStyle: {height: (PMExt.getBrowser().screen.height - 60) + 'px', overflow: 'auto'}
}).show();
TabPanel.doLayout(); TabPanel.doLayout();
} }else{
var windContainer = window.open(uri,"winContainer");
}
}
} }
}, },
failure: function ( result, request) { failure: function ( result, request) {