| Server IP : 194.30.32.123 / Your IP : 216.73.216.89 Web Server : Apache System : Linux 4f6650a08421 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64 User : ftpbegirale ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /expert/htwebs/www.begirale.com/public/wp-content/plugins/video-destacado/js/ |
Upload File : |
//<![CDATA[
jQuery(function($){
$('#video-destaque .button.add, #video-destaque .button[name=add]').bind('click', function(e){
var id = $('#video-destaque #id_video').attr("value");
if( id == "" ){
e.preventDefault();
$('#video-destaque #id_video').css({'border': '1px solid #aaa'}).focus();
}else{
$('#video_destaque_metabox .thumb').hide();
$(this).parent().parent().before('<img class="thumb" src="http://img.youtube.com/vi/'+id+'/0.jpg" alt="titulo" />');
}
});
$('#video-destaque .button.del, #video-destaque .button[name=del]').bind('click', function(e){
var id = $('#video-destaque #id_video').attr("value");
if( id == "" ){
e.preventDefault();
$('#video-destaque #id_video').css({'border': '1px solid #aaa'}).focus();
}else{
$('#video-destaque #id_video').val('');
$('#video_destaque_metabox .thumb').remove();
}
});
$('.vd-options a').click(function(event){
event.preventDefault();
$('.vd-more').toggle();
});
// Admin settings select all
$(document).ready(function() {
$("#cb-select-all").click(function() {
var checkBoxes = $("input[name*=video_destacado]");
checkBoxes.prop("checked", !checkBoxes.prop("checked"));
});
});
});
//]]>