提交 62b1add0 编写于 作者: U unknown

移动端不显示人员组件的弹出信息\

上级 332a5cd1
......@@ -31,13 +31,25 @@ MWF.xApplication.Selector.Identity = new Class({
this.loadInclude(afterLoadSelectItemFun);
}else if (this.options.units.length){
var unitLoaded = 0;
var loadUnitSuccess = function () {
unitLoaded++;
if( unitLoaded === this.options.units.length ){
this.loadInclude( afterLoadSelectItemFun );
this.unitLoaded = true;
if( this.includeLoaded ){
if(afterLoadSelectItemFun)afterLoadSelectItemFun();
}
}
}.bind(this);
var loadUnitFailure = loadUnitSuccess;
this.loadInclude( function () {
this.includeLoaded = true;
if( this.unitLoaded ){
if(afterLoadSelectItemFun)afterLoadSelectItemFun();
}
}.bind(this));
this.options.units.each(function(unit){
if (typeOf(unit)==="string"){
this.orgAction.getUnit(unit, function(json){
......
......@@ -1362,7 +1362,12 @@ MWF.xApplication.Selector.Person = new Class({
}
},
afterLoadSelectItem : function(){
if( this.items.length === 0 && this.subCategorys.length === 0 ){
this.noSelectableItemTextDiv = new Element("div", {
text : this.lp.noSelectableItemText
}).inject( this.itemAreaNode );
}
this.fireEvent("afterLoadSelectItem", [this]);
},
setSize : function(){
......
......@@ -15,6 +15,7 @@ MWF.xApplication.Selector.LP = MWF.SelectorLP = {
"selectTable": "选择数据表",
"selectCMSApplication": "选择内容管理应用",
"selectCMSCategory": "选择内容管理栏目",
"noSelectableItemText" : "无可选项,请联系管理员",
"searchDescription" : "搜索内容",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册