function updateUsersTable(refresh){
            if (!refresh && XNAT.data['/xapi/users/profiles']) {
                getActiveUsers(function(){
                    renderUsersTable();
                });
                return {
                    done: function(callback){
                        callback.call()
                    }
                }
            }
            return XNAT.xhr.get({
                url: XNAT.url.restUrl('/xapi/users/profiles'),
                success: function(data){
                    XNAT.data['/xapi/users/profiles'] = data;
                    // console.log(data);
                    getActiveUsers(function(){
                        renderUsersTable();
                    });
                }
            })
        }
// TODO: re-render *only* the table rows, not the whole table
re-render *only* the table rows, not the whole table
re - render * only * the table rows not the whole table
function updateUsersTable(refresh){
            if (!refresh && XNAT.data['/xapi/users/profiles']) {
                getActiveUsers(function(){
                    renderUsersTable();
                });
                return {
                    done: function(callback){
                        callback.call()
                    }
                }
            }
            return XNAT.xhr.get({
                url: XNAT.url.restUrl('/xapi/users/profiles'),
                success: function(data){
                    XNAT.data['/xapi/users/profiles'] = data;
                    getActiveUsers(function(){
                        renderUsersTable();
                    });
                }
            })
        }
function updateUsersTable ( refresh ) { if ( ! refresh && XNAT . data [ '/xapi/users/profiles' ] ) { getActiveUsers ( function ( ) { renderUsersTable ( ) ; } ) ; return { done : function ( callback ) { callback . call ( ) } } } return XNAT . xhr . get ( { url : XNAT . url . restUrl ( '/xapi/users/profiles' ) , success : function ( data ) { XNAT . data [ '/xapi/users/profiles' ] = data ; getActiveUsers ( function ( ) { renderUsersTable ( ) ; } ) ; } } ) }
TODO: re-render *only* the table rows, not the whole table
TODO : re - render * only * the table rows not the whole table
// console.log(data);