clipbucket/upload/js/embed_video_mod/functions.js
Arslan Hassan c85412a330 Added : File based language system, now language will be loaded from file instead of database, each time
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
2010-12-29 09:41:11 +00:00

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");
}
}