提交 356fdc88 编写于 作者: U unknown

MDomItem修改

上级 28d1f241
...@@ -121,7 +121,8 @@ var MDomItem = new Class({ ...@@ -121,7 +121,8 @@ var MDomItem = new Class({
RTFConfig : null, //CKEditor 的设置项 RTFConfig : null, //CKEditor 的设置项
mSelectorOptions : null, //自定义下拉组件设置项 mSelectorOptions : null, //自定义下拉组件设置项
calendarOptions : null, //日期选择器的设置项 calendarOptions : null, //日期选择器的设置项
orgWidgetOptions : null //org组件的选项 orgWidgetOptions : null, //org组件的选项
orgOptions: null
}, },
initialize: function (container, options , parent, app, css ) { initialize: function (container, options , parent, app, css ) {
this.form = parent; this.form = parent;
...@@ -655,6 +656,9 @@ MDomItem.Util = { ...@@ -655,6 +656,9 @@ MDomItem.Util = {
if( callback )callback( array ); if( callback )callback( array );
}.bind(this) }.bind(this)
}; };
if( options.orgOptions ){
opt = Object.merge(opt, options.orgOptions);
}
if( opt.types.length === 0 )opt.types = null; if( opt.types.length === 0 )opt.types = null;
var selector = new MWF.O2Selector(container, opt ); var selector = new MWF.O2Selector(container, opt );
}, },
...@@ -2875,6 +2879,9 @@ MDomItem.Org = new Class({ ...@@ -2875,6 +2879,9 @@ MDomItem.Org = new Class({
exclude : options.exclude, exclude : options.exclude,
expandSubEnable : options.expandSubEnable expandSubEnable : options.expandSubEnable
}; };
if( this.options.orgOptions ){
opt.orgOptions = this.options.orgOptions;
}
MDomItem.Util.selectPerson( this.app.content, opt, function( array ){ MDomItem.Util.selectPerson( this.app.content, opt, function( array ){
item.empty(); item.empty();
this.orgData = this.module.orgData = []; this.orgData = this.module.orgData = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册