-horizontal").submit(function(){
		var ajax_data = $(".form-horizontal").serialize();
		$.post("{url('media_edit')}", ajax_data, function(data){
		    if(data.status > 0){
		    	window.parent.location.reload();
			}
		    else{
			    alert(data.error);
			    return false;
			}
		}, 'json');
	});
})
</script>
{include file="pagefooter"}