From c6947267ef9d8c457be7aa4381a494298b515964 Mon Sep 17 00:00:00 2001 From: zhangwei Date: Tue, 30 Oct 2018 09:29:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=86=E9=A2=91=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=B8=A7=E5=9B=BE=E7=89=87=E7=AA=97=E5=8F=A3=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E4=B8=8E=E9=AB=98=E5=BA=A6=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/views/cfg/av/fileSampleForm.jsp | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) 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){