|
1 | 1 |
|
2 | 2 | function delete_users(){
|
3 |
| - __post('/members/delete_users',getSelectedID()); |
| 3 | + kchat_alert("Are you sure you want to <strong>delete</strong> users?",(function(){__post('/members/delete_users',getSelectedID());})); |
4 | 4 | }
|
5 | 5 |
|
6 | 6 | function set_inactive_users(){
|
7 |
| - __post('/members/set_inactive_users',getSelectedID()); |
| 7 | + kchat_alert("Are you sure you want to set <strong>inactive</strong>?",(function(){__post('/members/set_inactive_users',getSelectedID());})); |
8 | 8 | }
|
9 | 9 |
|
10 | 10 | function set_active_users(){
|
11 |
| - __post('/members/set_active_users',getSelectedID()); |
| 11 | + kchat_alert("Are you sure you want to set <strong>active</strong>?",(function(){__post('/members/set_active_users',getSelectedID());})); |
12 | 12 | }
|
13 | 13 |
|
14 | 14 | function block_users(){
|
15 |
| - __post('/members/block_users',getSelectedID()); |
| 15 | + kchat_alert("Are you sure you want to <strong>block</strong> users?",(function(){__post('/members/block_users',getSelectedID());})); |
16 | 16 | }
|
17 | 17 |
|
18 | 18 | function unblock_users(){
|
19 |
| - __post('/members/unblock_users',getSelectedID()); |
| 19 | + kchat_alert("Are you sure you want to <strong>unblock</strong> users?",(function(){__post('/members/unblock_users',getSelectedID());})); |
20 | 20 | }
|
21 | 21 |
|
22 | 22 | function NewConversation(){
|
23 |
| - __post('/members/newconversation',getSelectedID(),{ |
| 23 | + kchat_alert("Are you sure you want to start new <strong>Conversation</strong>?",(function(){__post('/members/newconversation',getSelectedID(),{ |
24 | 24 | 'grpname' : $('#grpname').val()
|
25 |
| - }); |
| 25 | + });})); |
26 | 26 | }
|
27 | 27 |
|
28 | 28 | function revoke_admins(){
|
29 |
| - __post('/members/revokeadmin',getSelectedID()); |
| 29 | + kchat_alert("Are you sure you want to revoke <strong>admin privileges</strong>?",(function(){__post('/members/revokeadmin',getSelectedID());})); |
30 | 30 | }
|
31 | 31 |
|
32 | 32 | function make_admins(){
|
33 |
| - __post('/members/makeadmin',getSelectedID()); |
| 33 | + kchat_alert("Are you sure you want to grant <strong>admin privileges</strong>?",(function(){__post('/members/makeadmin',getSelectedID());})); |
34 | 34 | }
|
35 | 35 |
|
36 | 36 | function delete_user(){
|
37 |
| - __post('/members/delete_users',[$('#m_user').val()]); |
| 37 | + kchat_alert("Are you sure you want to <strong>delete</strong> users?",(function(){__post('/members/delete_users',[$('#m_user').val()]);})); |
38 | 38 | }
|
39 | 39 |
|
40 | 40 | function set_inactive_user(){
|
41 |
| - __post('/members/set_inactive_users',[$('#m_user').val()]); |
| 41 | + kchat_alert("Are you sure you want to set <strong>inactive</strong>?",(function(){__post('/members/set_inactive_users',[$('#m_user').val()]);})); |
42 | 42 | }
|
43 | 43 |
|
44 | 44 | function set_active_user(){
|
45 |
| - __post('/members/set_active_users',[$('#m_user').val()]); |
| 45 | + kchat_alert("Are you sure you want to set <strong>active</strong>?",(function(){__post('/members/set_active_users',[$('#m_user').val()]);})); |
46 | 46 | }
|
47 | 47 |
|
48 | 48 | function block_user(){
|
49 |
| - __post('/members/block_users',[$('#m_user').val()]); |
| 49 | + kchat_alert("Are you sure you want to <strong>block</strong> user?",(function(){__post('/members/block_users',[$('#m_user').val()]);})); |
50 | 50 | }
|
51 | 51 |
|
52 | 52 | function unblock_user(){
|
53 |
| - __post('/members/unblock_users',[$('#m_user').val()]); |
| 53 | + kchat_alert("Are you sure you want to <strong>unblock</strong> user?",(function(){__post('/members/unblock_users',[$('#m_user').val()]);})); |
54 | 54 | }
|
55 | 55 |
|
56 | 56 | function make_admin(){
|
57 |
| - __post('/members/makeadmin',[$('#m_user').val()]); |
| 57 | + kchat_alert("Are you sure you want to grant <strong>admin privileges</strong>?",(function(){__post('/members/makeadmin',[$('#m_user').val()]);})); |
58 | 58 | }
|
59 | 59 |
|
60 | 60 | function revoke_admin(){
|
61 |
| - __post('/members/revokeadmin',[$('#m_user').val()]); |
| 61 | + kchat_alert("Are you sure you want to revoke <strong>admin privileges</strong>?",(function(){__post('/members/revokeadmin',[$('#m_user').val()]);})); |
62 | 62 | }
|
63 | 63 |
|
64 | 64 | $(document).ready(function(){
|
|
0 commit comments