提交 46defad6 编写于 作者: U unknown

修复流程Opinion可能的错误

上级 28efcdb0
......@@ -364,22 +364,24 @@ MWF.xApplication.process.Xform.Opinion = MWF.APPOpinion = new Class({
this.searcheOpinionId = "";
}
},
searchOpinions: function(t){
searchOpinions: function(t) {
var value = this.input.get("value");
var arr = value.split(/[\n\r]/g);
lines = arr.length;
value = arr[arr.length-1];
value = arr[arr.length - 1];
var offsetValue = value;
//var offsetValue = value.substr(0, value.length-t.length);
var ops = this.userOpinions.filter(function(v, i){
return v.contains(t) && (v!=t);
if (this.userOpinions){
var ops = this.userOpinions.filter(function (v, i) {
return v.contains(t) && (v != t);
}.bind(this));
if (ops.length){
if (ops.length) {
this.showSelectOpinionNode(ops, offsetValue, lines);
}else{
} else {
this.hideSelectOpinionNode(ops);
}
}
},
hideSelectOpinionNode: function(){
if (this.selectOpinionNode) this.selectOpinionNode.setStyle("display", "none");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册