
Added : Remote Play option Added : Youtube Url Import to frontend Removed : Background command in upload.php, now all things will be process in 1 place Update : Upload form Fixed : Multiple forms at once.. Update : Improved emebd form Added : Functions for curl check and snatch file Updated : common.php to load language from file Added : Refresh lang file option in admin area Updated: get_form in file_uploader.php
28 lines
No EOL
623 B
JavaScript
28 lines
No EOL
623 B
JavaScript
// JavaScript Document
|
|
var embed_check = baseurl+"/actions/embed_form_verifier.php";
|
|
function check_embed_code(objId)
|
|
{
|
|
if($("#embed_code").val() == "")
|
|
alert("Embed code was empty");
|
|
else if($("#duration").val() == "")
|
|
alert("Please enter video duration");
|
|
else
|
|
{
|
|
$.post(embed_check,
|
|
{
|
|
embed_code : escape($("#embed_code").val()),
|
|
duration : $("#duration").val(),
|
|
file_name : file_name,
|
|
thumb_file : $("#thumb_file").val()
|
|
},
|
|
|
|
function (data) {
|
|
if(data.err)
|
|
{
|
|
alert(data.err);
|
|
}else{
|
|
$("#uploadForm"+objId).submit();
|
|
}
|
|
}, "json");
|
|
}
|
|
} |