 /* * Rather than animating on IE, the icon just simply disappears and * never comes back. So disable animations. */ this.animateIcon = this.multiline && (navigator.appVersion.indexOf("MSIE") == -1); 
RB.widgets.InlineEditor = function(config) {    YAHOO.ext.util.Config.apply(this, config);    var dh = YAHOO.ext.DomHelper;    this.el = getEl(this.el);    this.el.enableDisplayMode();    this.form = dh.insertBefore(this.el.dom, {        tag: 'form',        cls: 'inline-editor-form ' + (this.cls || '')    }, true);    this.form.enableDisplayMode();    var saveButton = {        tag: 'input',        type: 'submit',        value: 'Save',        cls: 'save'    };    var cancelButton = {        tag: 'input',        type: 'submit',        value: 'Cancel',        cls: 'cancel'    };    if (this.multiline) {        this.field = this.form.createChild({            tag: 'textarea',            html: this.value || '',            wrap: 'none',            rows: 10,            cols: 80        });        block = this.form.createChild({tag: 'div'});        this.saveButton = block.createChild(saveButton);        this.cancelButton = block.createChild(cancelButton);    } else {        this.field = this.form.createChild({            tag: 'input',            type: 'text'        });        this.saveButton = this.form.createChild(saveButton);        this.cancelButton = this.form.createChild(cancelButton);    }    this.saveButton.enableDisplayMode();    this.cancelButton.enableDisplayMode();    if (this.showEditIcon) {        var img = {            tag: 'img',            cls: 'editicon',            src: '/images/edit.png',            width: 20,            height: 14        };        if (this.multiline) {            var labels = this.findLabelForId(this.el.id);            if (labels.length > 0) {                this.editicon = dh.append(labels[0], img, true);            }        } else {            this.editicon = dh.insertAfter(this.el.dom, img, true);        }        if (this.editicon) {            this.editicon.enableDisplayMode();            this.editicon.on('click', this.startEdit, this, true);        }    }    this.events = {        'complete': true,        'beginedit': true,        'cancel': true    };    if (!this.useEditIconOnly) {        this.el.on('click', this.startEdit, this, true);    }    this.saveButton.on('click', this.save, this, true);    this.cancelButton.on('click', this.cancel, this, true);    this.field.addKeyMap([        {            key: [10, 13],            fn: this.onEnter,            scope: this        },        {            key: 27,            fn: this.onEscape,            scope: this        }    ]);    YAHOO.ext.EventManager.onWindowResize(this.fitWidthToParent, this, true);    this.hide();}
4441	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4441/315b6987b56f5da16541db29d139bf1ecbdfba22/widgets.js/buggy/htdocs/scripts/rb/widgets.js