# profile-builder/2.0.3/assets/js/jquery-edit-profile.js

User Profile Builder – Beautiful User Registration Forms, User Profiles &amp; User Role Editor, version 2.0.3. 16 lines.

- Page: https://pluginprobe.com/plugins/profile-builder/2.0.3/code/assets/js/jquery-edit-profile.js
- Raw: https://pluginprobe.com/plugins/profile-builder/2.0.3/raw/assets/js/jquery-edit-profile.js
- Modified: 2014-10-21T13:22:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/profile-builder/2.0.3/code/assets/js/jquery-edit-profile.js#L10-L20`.

```javascript
function confirmDelete( nonceField, currentUser, customFieldID, customFieldName, returnTo, ajaxurl, what, fileName, text ) {
  if (confirm(text)) {
	jQuery.post( ajaxurl ,  { action:"hook_wppb_delete", currentUser:currentUser, customFieldID:customFieldID, customFieldName:customFieldName, what:what, _ajax_nonce:nonceField }, function( response ) {
		if( jQuery.trim(response)=="done" ){
			if ( what == 'avatar' ){
				alert( ep.avatar );
			}else{
				alert( ep.attachment +' '+ fileName );
			}
			window.location=returnTo;
		}else{
			alert(jQuery.trim(response));
		}
	});			
  }
}
```
