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