(function(){var e=5;u8.Crm.Widgets.DocumentEditList=function(e,t){this.Widget(e,$.extend({},u8.Crm.Widgets.DocumentEditList.defaults,t));this._isCreated=false;u8.using({types:["RecordListBox"],texts:["net_documents_text"]},this._create.bind(this))};u8.Crm.Widgets.DocumentEditList.defaults={};u8.Crm.Widgets.DocumentEditList.makeClass({name:"DocumentEditList",deriveFrom:u8.Base.Widgets.Widget,events:["Create","SizeChange"]});$.extend(u8.Crm.Widgets.DocumentEditList.prototype,{dispose:function(){if(this._isDisposed){return}u8.services.events.unbind("u8.services.documents.onEditedDocumentsChange",this.id);this.Widget_dispose()},_create:function(){var t="D1";var i=this.$("<div />").appendTo(this.element);var s=u8.services.documents.getEditedDocumentUids();var d={parent:this,infoAreaId:t,hideIfEmpty:true,showMenu:true,menuName:"M_Documents_Edited",gridModel:{pageSize:e},grid:{showPaging:true,collapseInvisibleRows:true},dataProvider:{uids:s,infoAreaId:t,maxRows:null},header:$.extend({headerGroupName:t,headerName:"SimpleList",view:{showCollapse:false},elPagingFooter:null},this.header)};this._recordListBox=u8.widget("RecordListBox",i,d);u8.services.events.bind("u8.services.documents.onEditedDocumentsChange",this._onEditedDocumentsChange.bind(this),this.id);u8.tools.createdWhenReady(this)},_onEditedDocumentsChange:function(){if(this._isDisposed){return}this._recordListBox.dataProvider.set("uids",u8.services.documents.getEditedDocumentUids())}})})();