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

修复流程Opinion可能的错误

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