增加删除弹框提示

dev_SaaS
daiao 6 years ago
parent b463609ac8
commit e5165d1e28

@ -14,7 +14,7 @@
<td class="edu-txt-left"><%= l.subjects.size %></td> <td class="edu-txt-left"><%= l.subjects.size %></td>
<td><%= format_time l.created_at %></td> <td><%= format_time l.created_at %></td>
<td> <td>
<a href="javascript:void(0)" class="mr15" onclick="deleteLevel('<%= l.id %>');">删除</a> <a href="javascript:void(0)" class="mr15" onclick="delete_confirm_box_4('/managements/delete_subject_level?id=<%= l.id %>', '是否确定删除!');">删除</a>
<a href="javascript:void(0)" class="mr15 renameLine">重命名</a> <a href="javascript:void(0)" class="mr15 renameLine">重命名</a>
</td> </td>
</tr> </tr>

@ -2075,6 +2075,14 @@ function delete_confirm_box_3(url, str){
pop_box_new(htmlvalue, 300, 140); pop_box_new(htmlvalue, 300, 140);
} }
//点击删除时的确认弹框: 走post方法
function delete_confirm_box_4(url, str){
var htmlvalue = '<div class="task-popup" style="width:480px;"><div class="task-popup-title clearfix"><h3 class="fl color-grey3">提示</h3><a href="javascript:void(0);" class="pop_close"><i class="fa fa-times-circle font-18 link-color-grey fr mt5"></i></a></div>'+
'<div class="task-popup-content"><p class="task-popup-text-center font-16">' + str + '</p></div><div class="task-popup-submit clearfix"><a href="javascript:void(0);" onclick="hideModal();" class="task-btn fl">取消</a>'+
'<a href="'+ url +'" class="task-btn task-btn-orange fr pop_close" data-method="POST" data-remote="true">确定</a></div></div>';
pop_box_new(htmlvalue, 480, 160);
}
//提示框:只有一个按钮,点击关闭弹框 //提示框:只有一个按钮,点击关闭弹框
function notice_sure_box(str){ function notice_sure_box(str){
var htmlvalue = '<div id="muban_popup_box" style="width:350px;"><div class="muban_popup_top"><h3 class="fl">提示</h3><a href="javascript:void(0);" class="muban_icons_close fr"></a></div>'+ var htmlvalue = '<div id="muban_popup_box" style="width:350px;"><div class="muban_popup_top"><h3 class="fl">提示</h3><a href="javascript:void(0);" class="muban_icons_close fr"></a></div>'+

Loading…
Cancel
Save