diff --git a/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp b/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp index c77fe8473..8b5c0d525 100644 --- a/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp @@ -71,14 +71,7 @@ $(function(){ $("#picPath").val(data.picFilePath); $("#showPicture").removeClass("hidden"); var url = "${ctx}/ntc/av/sample/selectVedioPicture?picFilePath="+encodeURIComponent(data.picFilePath); - $.jBox("iframe:"+url, { - title: "", - top: '1%', - draggable:false, - width: 1000, - height:500, - buttons: { 'close': true } - }); + openPicWindow(url); }else{ alert(data.msg); } @@ -171,16 +164,21 @@ $(function(){ $("#showPicture").on('click',function(){ var srcPath = $("#srcPath").val() var url = "${ctx}/ntc/av/sample/selectVedioPicture?picFilePath="+encodeURIComponent($("#picPath").val())+"&srcPath="+encodeURIComponent(srcPath); - $.jBox("iframe:"+url, { - title: "", - width: 1350, - height:800, - dragLimit: true, - buttons: { 'close': true,"ok":"ok" } - }); + openPicWindow(url); }) }); +function openPicWindow(url){ + $.jBox("iframe:"+url, { + title: "", + top: '1%', + draggable:false, + width: $(document).width()*0.9, + height:$(document).height()*0.9, + buttons: { 'close': true } + }); +} + function hiddenlevel(){ var action=$("input[name='action']:checked").val(); if(action==16){