2016-11-18 15:34:53 +08:00
|
|
|
<% if params[:type] == "0" %>
|
|
|
|
var htmlvalue = '<div id="muban_popup_box" style="width:400px;"><div class="muban_popup_top"><h3 class="fl">提示</h3><a href="javascript:void(0);" class="muban_icons_close fr"></a></div>'+
|
|
|
|
'<div class="clear muban_popup_con"><div class="newupload_conbox newupload_tishi"><p>已归档</p>' +
|
|
|
|
'<a href="javascript:void(0);" class="btn btn-blue mt10" onclick="click_OK();">确定</a></div></div></div>';
|
|
|
|
<% else %>
|
|
|
|
var htmlvalue = '<div id="muban_popup_box" style="width:400px;"><div class="muban_popup_top"><h3 class="fl">提示</h3><a href="javascript:void(0);" class="muban_icons_close fr"></a></div>'+
|
|
|
|
'<div class="clear muban_popup_con"><div class="newupload_conbox newupload_tishi"><p>已恢复</p>' +
|
|
|
|
'<a href="javascript:void(0);" class="btn btn-blue mt10" onclick="click_OK();">确定</a></div></div></div>';
|
|
|
|
<% end %>
|
|
|
|
pop_box_new(htmlvalue, 400, 132);
|
|
|
|
|
|
|
|
function click_OK(){
|
|
|
|
hideModal();
|
|
|
|
<% if params[:source] == "1" %>
|
|
|
|
window.location.href = "<%=syllabus_courselist_syllabus_path(@syllabus, :list_type => params[:type].to_i) %>";
|
2016-11-22 10:27:56 +08:00
|
|
|
<% elsif params[:source] == "0" %>
|
|
|
|
<% if params[:type] == "0" %>
|
|
|
|
window.location.href = "<%=user_courselist_user_path(User.current) %>";
|
|
|
|
<% else %>
|
|
|
|
window.location.href = "<%=user_archive_courses_users_path() %>";
|
|
|
|
<% end %>
|
2016-11-18 15:34:53 +08:00
|
|
|
<% end %>
|
|
|
|
}
|