Index: ssts-web/src/main/webapp/js/common.js =================================================================== diff -u -r27259 -r27263 --- ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 27259) +++ ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 27263) @@ -314,7 +314,7 @@ { width = parseInt(width,10); height = parseInt(height,10); - + var showModalDialog = window.showModalDialog || ''; if(showModalDialog == ''){ @@ -342,6 +342,47 @@ } } +function openModalWindowForExt(pageUrl,varArgIn,title,width,height) +{ + width = parseInt(width,10); + height = parseInt(height,10); + + var url = ''; + + if(typeof varArgIn == 'object'){ + var html = ''; + + for(var k in varArgIn){ + html += k+'='+varArgIn[k]+'&'; + } + + html = html.slice(0,html.length-1); + url = pageUrl+'?'+html; + }else { + url = pageUrl; + } + + var win = new top.Ext.Window({ + title : title, + id:'extWindow', + width : width+50, + height : height+50, + autoScroll : false, + isTopContainer : true, + modal : true, + resizable : false, + items:[{ + xtype:"panel", + id:"index", + html:"" + }] + }) + + win.show(); + + return win; +} + function getURLParameter(paramName, defaultValue){ if(defaultValue == 'undefined' || defaultValue == null){ defaultValue = "";