/* * Things went badly, oh noes! Remove the spinner and show * the errors. */ 
/* * Things went badly, oh noes! Remove the spinner and show * the errors. */ 
    submit: function() {		/* We don't want to stack errors, so get rid of any existing ones. */        this.clearErrors();		/* Don't let the user press any buttons while we're doing this. */        for (b in this.buttons) {            this.buttons[b].disable();        }        var spinnerDiv = null;        if (this.upload) {			/*			 * We're uploading, so indicate this with a spinner and			 * "Uploading..." text in the bottom-left of the dialog.			 */            spinnerDiv = dh.insertBefore(this.buttons[0].el.dom, {                tag: 'div',                cls: 'spinner',                children: [{                    tag: 'img',                    src: '/images/dlg-spinner.gif',                    width: 16,                    height: 16,                    alt: ""                }, {                    tag: 'h1',                    html: 'Uploading...'                }]            }, true);        }        YAHOO.util.Connect.setForm(this.formEl.dom, this.upload);        asyncJsonRequest("POST", this.path, {            success: function(rsp) {				/*				 * Things went well, so remove the spinner and hide the				 * dialog.				 */                if (spinnerDiv) {                    spinnerDiv.remove();                }                this.hide(this.onSubmitted);            }.createDelegate(this),            failure: function(errmsg, rsp) {				/*				 * Things went badly, oh noes! Remove the spinner and show				 * the errors.				 */                if (spinnerDiv) {                    spinnerDiv.remove();                }                this.showError(errmsg, rsp);            }.createDelegate(this)        }, ""); // The "" prevents the "dummy" value from being sent		// Prevent the dialog from closing just yet. The callbacks will do it.        return false;    },
4441	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4441/f739c8b268ada26ee98cbb02e1ef80e98640fe9d/dialogs.js/buggy/htdocs/scripts/rb/dialogs.js