function newUserDialog(){
            var updated = false;
            return xmodal.open({
                width: 600,
                height: 500,
                title: 'Create New User',
                content: '<div class="new-user-form"></div>',
                beforeShow: function(){
                    var _container = this.$modal.find('div.new-user-form');
                    renderUserAccountForm(null, _container)
                },
                okLabel: 'Save',
                okClose: 'false',
                okAction: function(obj){
                    var $form = obj.$modal.find('form#user-account-form-panel');
                    var doSave = saveUserData($form);
                    doSave.done(function(){
                        updated =  true;
                        obj.close();
                    });
                },
                onClose: function(){
                    if (updated) {
                        updateUsersTable(true);
                    }
                }
            })
        }
// open a dialog for creating a new user
open a dialog for creating a new user
open a dialog for creating a new user
function newUserDialog(){
            var updated = false;
            return xmodal.open({
                width: 600,
                height: 500,
                title: 'Create New User',
                content: '<div class="new-user-form"></div>',
                beforeShow: function(){
                    var _container = this.$modal.find('div.new-user-form');
                    renderUserAccountForm(null, _container)
                },
                okLabel: 'Save',
                okClose: 'false',
                okAction: function(obj){
                    var $form = obj.$modal.find('form#user-account-form-panel');
                    var doSave = saveUserData($form);
                    doSave.done(function(){
                        updated =  true;
                        obj.close();
                    });
                },
                onClose: function(){
                    if (updated) {
                        updateUsersTable(true);
                    }
                }
            })
        }
function newUserDialog ( ) { var updated = false ; return xmodal . open ( { width : 600 , height : 500 , title : 'Create New User' , content : '<div class="new-user-form"></div>' , beforeShow : function ( ) { var _container = this . $modal . find ( 'div.new-user-form' ) ; renderUserAccountForm ( null , _container ) } , okLabel : 'Save' , okClose : 'false' , okAction : function ( obj ) { var $form = obj . $modal . find ( 'form#user-account-form-panel' ) ; var doSave = saveUserData ( $form ) ; doSave . done ( function ( ) { updated = true ; obj . close ( ) ; } ) ; } , onClose : function ( ) { if ( updated ) { updateUsersTable ( true ) ; } } } ) }
open a dialog for creating a new user
open a dialog for creating a new user