﻿/*!
 * Ext JS Library 3.0.0
 * Copyright(c) 2006-2009 Ext JS, LLC
 * licensing@extjs.com
 * http://www.extjs.com/license
 */
var MX_DESCRIPTIONBIS2 = Ext.extend(Ext.util.Observable, {
    constructor: function(config){
        this.addEvents('finished'); // specify the events we're going to fire
        MX_DESCRIPTIONBIS2.constructor.call(this, config);
    },
    
    create: function(pid, value){
		value = value.length > 0 ? value : '&nbsp;';
		this.panel = new Ext.Panel({ 
			id: 'mt_detail_mx_descriptionbis2',
			hideLabel: true,
			layout:'form',
			width:'auto',
			html: '<div class="mt_detail_mx_description_field">'+value+"</div>",
			mobiClass: 'MX_DESCRIPTIONBIS2'
		});
		
		this.fireEvent('finished', this.panel);
    }
});