Skip to content

Commit

Permalink
Adjust default video size.
Browse files Browse the repository at this point in the history
  • Loading branch information
lincanbin committed Jun 15, 2016
1 parent ab928e8 commit bea580e
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions static/editor/dialogs/video/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down Expand Up @@ -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"
});
}
Expand Down Expand Up @@ -273,8 +270,8 @@
$G("preview").innerHTML = '<div class="previewMsg"><span>'+lang.urlError+'</span></div>'+
'<embed class="previewVideo" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"' +
' src="' + conUrl + '"' +
' width="' + 420 + '"' +
' height="' + 280 + '"' +
' width="' + 650 + '"' +
' height="' + 380 + '"' +
' wmode="transparent" play="true" loop="false" menu="false" allowscriptaccess="never" allowfullscreen="true" >' +
'</embed>';
}
Expand All @@ -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];
Expand Down

0 comments on commit bea580e

Please sign in to comment.