
Fixed : view channel partial fix Fixed : embed code Fixed : embed code and cblink install function conflict of same name Fixed : embed and cblink plugin form naming conflicts with form field ids Added : Categories link featured to work with plugin based categories also
32 lines
No EOL
735 B
JavaScript
32 lines
No EOL
735 B
JavaScript
// JavaScript Document
|
|
var embed_check = baseurl+"/actions/embed_form_verifier.php";
|
|
function check_embed_code(objId)
|
|
{
|
|
var theForm = '#embedUploadForm'+objId;
|
|
if($(theForm+" #embed_code").val() == "")
|
|
alert("Embed code was empty");
|
|
else if($(theForm+" #duration").val() == "")
|
|
alert("Please enter video duration");
|
|
else
|
|
{
|
|
|
|
$.post(embed_check,
|
|
{
|
|
embed_code : encode64($(theForm+" #embed_code").val()),
|
|
duration : $(theForm+" #duration").val(),
|
|
file_name : file_name,
|
|
thumb_file : $(theForm+" #thumb_file").val(),
|
|
verify_embed : 'yes'
|
|
},
|
|
|
|
|
|
function (data) {
|
|
if(data.err)
|
|
{
|
|
alert(data.err);
|
|
}else{
|
|
$(theForm).submit();
|
|
}
|
|
}, "json");
|
|
}
|
|
} |