1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

modifed group-member-icon;rewrite confirm dialog;add confirm to rm group

This commit is contained in:
llj
2012-05-18 17:48:20 +08:00
committed by plt
parent e24249d999
commit b004f6df92
6 changed files with 23 additions and 20 deletions

View File

@@ -1,15 +1,18 @@
//add delete confirm dialog
var Del_url = '';
function addConfirmTo(ele) {
//add op confirm dialog
var Op_url = '';
function addConfirmTo(ele, confirm_con) {
ele.each(function() {
$(this).click(function() {
$('#dialog-delete-confirm').modal({appendTo:'#main'});
Del_url = $(this).attr('data');
if (confirm_con) {
$('#confirm-con').html(confirm_con);
}
$('#dialog-confirm').modal({appendTo:'#main'});
Op_url = $(this).attr('data');
});
});
}
$('#yes-btn').click(function() {
location.href = Del_url;
location.href = Op_url;
});
//handle table