mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Add confirmation on user deletion
This commit is contained in:
@@ -97,4 +97,14 @@ jQuery(document).ready(function() {
|
||||
jQuery('textarea[id=um-meta-bio]').change(um_update_bio_countdown);
|
||||
jQuery('textarea[id=um-meta-bio]').keyup(um_update_bio_countdown);
|
||||
|
||||
jQuery('.um-profile-edit a.um_delete-item').click(function(e){
|
||||
e.preventDefault();
|
||||
var a = confirm('Are you sure that you want to delete this user?');
|
||||
if( ! a ){
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -805,7 +805,7 @@ class UM_User {
|
||||
foreach($actions as $id => $arr ) {
|
||||
$url = add_query_arg('um_action', $id );
|
||||
$url = add_query_arg('uid', um_profile_id(), $url );
|
||||
$items[] = '<a href="' . $url .'" class="real_url">' . $arr['label'] . '</a>';
|
||||
$items[] = '<a href="' . $url .'" class="real_url '.$id.'-item">' . $arr['label'] . '</a>';
|
||||
}
|
||||
return $items;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user