diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn09Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt03Controller.java similarity index 54% rename from src/main/java/cokr/xit/fims/crdn/web/Crdn09Controller.java rename to src/main/java/cokr/xit/fims/sprt/web/Sprt03Controller.java index 02e421ce..af9a687c 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn09Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt03Controller.java @@ -1,20 +1,16 @@ -package cokr.xit.fims.crdn.web; +package cokr.xit.fims.sprt.web; import org.springframework.web.servlet.ModelAndView; -import cokr.xit.base.web.ApplicationController; - -public class Crdn09Controller extends ApplicationController { - +public class Sprt03Controller { /** 동영상 재생 메인화면을 연다. - * @return fims/crdn/crdn09010-main + * @return fims/sprt/sprt03010-main */ public ModelAndView videoMain(String openerPageName) { ModelAndView mav = new ModelAndView(); - mav.setViewName("fims/crdn/crdn09010-main"); + mav.setViewName("fims/sprt/sprt03010-main"); mav.addObject("openerPageName", openerPageName); return mav; } - } diff --git a/src/main/java/cokr/xit/fims/task/CmnController.java b/src/main/java/cokr/xit/fims/task/CmnController.java index 16a248f5..3b2db764 100644 --- a/src/main/java/cokr/xit/fims/task/CmnController.java +++ b/src/main/java/cokr/xit/fims/task/CmnController.java @@ -98,10 +98,10 @@ public class CmnController { } @Controller - @RequestMapping(name="동영상 재생", value="/crdn/crdn09") - class Crdn09Controller extends cokr.xit.fims.crdn.web.Crdn09Controller { + @RequestMapping(name="동영상 재생", value="/sprt/sprt03") + class Sprt03Controller extends cokr.xit.fims.sprt.web.Sprt03Controller { /** 동영상 재생 메인화면을 연다. - * @return fims/crdn/crdn09010-main + * @return fims/sprt/sprt03010-main */ @Override @RequestMapping(name="동영상 재생 메인", value="/010/main.do") diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp index 222ff7b8..23353e9c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp @@ -345,7 +345,7 @@ $(document).ready(function(){ $("#btnInst--${pageName}").on('click', () => $P.fnSave()); $("#btnAddFile--${pageName}").on('click', () => { $("#uploadFileList--${pageName}").trigger("click"); }); $("#btnOpenVideoCapture--${pageName}").on('click', () => { - window.open(wctx.url("/crdn/crdn09/010/main.do?openerPageName=${pageName}") + window.open(wctx.url("/sprt/sprt03/010/main.do?openerPageName=${pageName}") ,"newVideoCapture" ,"width=1800,height=950" ); diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn09010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03010-main.jsp similarity index 98% rename from src/main/webapp/WEB-INF/jsp/fims/crdn/crdn09010-main.jsp rename to src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03010-main.jsp index 0bc3354e..67d9a5ef 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn09010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt03010-main.jsp @@ -106,6 +106,10 @@ var openerPageName = "${openerPageName}"; var scaleFactor = 0.25; var snapshots = []; +document.getElementById("file").addEventListener('change', function () { + document.getElementById("video").focus(); +}); + document.getElementById("video").addEventListener('play', function () { document.getElementById("btnCapture").focus(); });