fix 1423 view proces map legends in internet explorer
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user