|
|
|
@ -22,6 +22,7 @@
|
|
|
|
|
</li>
|
|
|
|
|
<li class="clearfix mb10">
|
|
|
|
|
<span><%= video.title %></span>
|
|
|
|
|
<span style="margin-left: 20px;color: grey"><%= number_to_human_size(video.filesize) %></span>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<% if apply.pending? %>
|
|
|
|
@ -58,20 +59,22 @@
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function video_authorization_gree(id){
|
|
|
|
|
if(window.confirm("确认同意该视频发布吗?")){
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: '/managements/video_applies/' + id + '/agree',
|
|
|
|
|
type: 'post',
|
|
|
|
|
success: function(data){
|
|
|
|
|
if (data && data.status != -1) {
|
|
|
|
|
$('#authentication_list .admin-con-box.apply-' + id).remove();
|
|
|
|
|
url: '/managements/video_applies/' + id + '/agree',
|
|
|
|
|
type: 'post',
|
|
|
|
|
success: function(data){
|
|
|
|
|
if (data && data.status != -1) {
|
|
|
|
|
$('#authentication_list .admin-con-box.apply-' + id).remove();
|
|
|
|
|
|
|
|
|
|
if($('#authentication_list .admin-con-box').length == 0){
|
|
|
|
|
location.reload();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
alert(data.message);
|
|
|
|
|
if($('#authentication_list .admin-con-box').length == 0){
|
|
|
|
|
location.reload();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
alert(data.message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|