From bea580e5ec9c3116795f973a681ffc644074d395 Mon Sep 17 00:00:00 2001 From: lincanbin Date: Wed, 15 Jun 2016 15:01:51 +0800 Subject: [PATCH] Adjust default video size. --- static/editor/dialogs/video/video.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/static/editor/dialogs/video/video.js b/static/editor/dialogs/video/video.js index 5069b5d3..7e8a23b6 100644 --- a/static/editor/dialogs/video/video.js +++ b/static/editor/dialogs/video/video.js @@ -74,16 +74,13 @@ dialog.onok = function(){ $G("preview").innerHTML = ""; var currentTab = findFocus("tabHeads","tabSrc"); - switch(currentTab){ + switch(currentTab) { case "video": return insertSingle(); - break; case "videoSearch": return insertSearch("searchList"); - break; case "upload": return insertUpload(); - break; } }; dialog.oncancel = function(){ @@ -139,8 +136,8 @@ if(img.getAttribute("selected")){ videoObjs.push({ url:img.getAttribute("ue_video_url"), - width:420, - height:280, + width:650, + height:380, align:"none" }); } @@ -273,8 +270,8 @@ $G("preview").innerHTML = '
'+lang.urlError+'
'+ '' + ''; } @@ -284,8 +281,8 @@ function insertUpload(){ var videoObjs=[], uploadDir = editor.getOpt('videoUrlPrefix'), - width = $G('upload_width').value || 420, - height = $G('upload_height').value || 280, + width = $G('upload_width').value || 650, + height = $G('upload_height').value || 380, align = findFocus("upload_alignment","name") || 'none'; for(var key in uploadVideoList) { var file = uploadVideoList[key];