提交 927f8a29 编写于 作者: NoSubject's avatar NoSubject

修复首页菜单搜索无效的bug

上级 e2705c4e
// o2.require("o2.widget.Common", null, false);
// o2.require("o2.xDesktop.Common", null, false);
// o2.require("o2.xDesktop.Actions.RestActions", null, false);
// o2.require("o2.xDesktop.Authentication", null, false);
o2.require("o2.widget.PinYin", null, false);
o2.xDesktop.Default = new Class({
Implements: [Options, Events],
options: {
......@@ -992,7 +992,7 @@ o2.xDesktop.Default.StartMenu = new Class({
},
searchQuerys: function(value){
if (this.queryJson && this.queryJson.length) this.queryJson.each(function(v){
if ((v.appName.toPYFirst().toLowerCase().indexOf(value)!==-1) || (v.appName.toPY().toLowerCase().indexOf(value)!==-1) || (v.appName.indexOf(value)!==-1)){
if ((v.name.toPYFirst().toLowerCase().indexOf(value)!==-1) || (v.name.toPY().toLowerCase().indexOf(value)!==-1) || (v.name.indexOf(value)!==-1)){
this.createQueryMenuItem(v);
}
}.bind(this));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册