function editUser(e, onclose){
            e.preventDefault();
            var username =
                (this.title || '').split(':')[0] ||
                $(this).data('username') ||
                $(this).closest('tr').data('username') ||
                (this.innerText || '').trim();
            getUserData(username).done(function(data){
                getUserRoles(username).done(function(roles){
                    data.roles = roles;
                    // save the data to namespaced object before opening dialog
                    XNAT.data['/xapi/users/profile/' + username] = data;
                    editUserDialog(data, onclose);
                })
            });
        }
// open a dialog to edit user properties
open a dialog to edit user properties
open a dialog to edit user properties
function editUser(e, onclose){
            e.preventDefault();
            var username =
                (this.title || '').split(':')[0] ||
                $(this).data('username') ||
                $(this).closest('tr').data('username') ||
                (this.innerText || '').trim();
            getUserData(username).done(function(data){
                getUserRoles(username).done(function(roles){
                    data.roles = roles;
                    XNAT.data['/xapi/users/profile/' + username] = data;
                    editUserDialog(data, onclose);
                })
            });
        }
function editUser ( e , onclose ) { e . preventDefault ( ) ; var username = ( this . title || '' ) . split ( ':' ) [ 0 ] || $ ( this ) . data ( 'username' ) || $ ( this ) . closest ( 'tr' ) . data ( 'username' ) || ( this . innerText || '' ) . trim ( ) ; getUserData ( username ) . done ( function ( data ) { getUserRoles ( username ) . done ( function ( roles ) { data . roles = roles ; XNAT . data [ '/xapi/users/profile/' + username ] = data ; editUserDialog ( data , onclose ) ; } ) } ) ; }
open a dialog to edit user properties
open a dialog to edit user properties
// save the data to namespaced object before opening dialog