提交 c63aa389 编写于 作者: U unknown

o2Identity移动端去除鼠标滑过事件,修复脚本上下文中this.view.lookup无效的问题

上级 18c63157
......@@ -83,22 +83,24 @@ o2.widget.O2Identity = new Class({
}
}
this.setEvent();
this.node.addEvents({
"mouseover": function(){
if( !layout.mobile ){
this.node.addEvents({
"mouseover": function(){
var style_over = ( layout.mobile && this.style.identityNode_over_mobile ) ?
this.style.identityNode_over_mobile : this.style.identityNode_over;
// var style_over = ( layout.mobile && this.style.identityNode_over_mobile ) ?
// this.style.identityNode_over_mobile : this.style.identityNode_over;
this.node.setStyles( style_over );
}.bind(this),
"mouseout": function(){
this.node.setStyles( this.style.identityNode_over ); //style_over
}.bind(this),
"mouseout": function(){
var style = ( layout.mobile && this.style.identityNode_mobile ) ?
this.style.identityNode_mobile : this.style.identityNode;
// var style = ( layout.mobile && this.style.identityNode_mobile ) ?
// this.style.identityNode_mobile : this.style.identityNode;
this.node.setStyles(style);
}.bind(this)
});
this.node.setStyles( this.style.identityNode ); //style
}.bind(this)
});
}
},
setEvent: function(){
if( this.open ){
......
......@@ -1023,7 +1023,7 @@ MWF.xScript.CMSEnvironment = function(ev){
this.view = {
"lookup": function(view, callback, async){
var filterList = {"filterList": (view.filter || null)};
MWF.Actions.get("x_query_assemble_surface").loadView(view.view, view.application, filterList, function(json){
MWF.Actions.load("x_query_assemble_surface").ViewAction.executeWithQuery(view.view, view.application, filterList, function(json){
var data = {
"grid": json.data.grid || json.data.groupGrid,
"groupGrid": json.data.groupGrid
......
......@@ -1544,7 +1544,7 @@ MWF.xScript.Environment = function(ev){
this.view = {
"lookup": function(view, callback, async){
var filterList = {"filterList": (view.filter || null)};
MWF.Actions.get("x_query_assemble_surface").loadView(view.view, view.application, filterList, function(json){
MWF.Actions.load("x_query_assemble_surface").ViewAction.executeWithQuery(view.view, view.application, filterList, function(json){
var data = {
"grid": json.data.grid || json.data.groupGrid,
"groupGrid": json.data.groupGrid
......
......@@ -1033,7 +1033,7 @@ MWF.xScript.PageEnvironment = function (ev) {
this.view = {
"lookup": function (view, callback, async) {
var filterList = { "filterList": (view.filter || null) };
MWF.Actions.get("x_query_assemble_surface").loadView(view.view, view.application, filterList, function (json) {
MWF.Actions.load("x_query_assemble_surface").ViewAction.executeWithQuery(view.view, view.application, filterList, function (json) {
var data = {
"grid": json.data.grid || json.data.groupGrid,
"groupGrid": json.data.groupGrid
......
......@@ -2846,7 +2846,8 @@ MWF.xScript.ViewEnvironment = function (ev) {
* }
* ]
*}, function(data){
* var result = data.grid; //得到过滤后的数据
* var grid = data.grid; //得到过滤后的数据
* var groupGrid = data.groupGrid; //如果有分类,得到带分类的数据
* //......
*});
* @example
......@@ -2873,13 +2874,14 @@ MWF.xScript.ViewEnvironment = function (ev) {
* },
* ]
*}, function(data){
* var result = data.grid; //得到过滤后的数据
* var grid = data.grid; //得到过滤后的数据
* var groupGrid = data.groupGrid; //如果有分类,得到带分类的数据
* //......
*});
*/
"lookup": function (view, callback, async) {
var filterList = { "filterList": (view.filter || null) };
MWF.Actions.get("x_query_assemble_surface").loadView(view.view, view.application, filterList, function (json) {
MWF.Actions.load("x_query_assemble_surface").ViewAction.executeWithQuery(view.view, view.application, filterList, function (json) {
var data = {
"grid": json.data.grid || json.data.groupGrid,
"groupGrid": json.data.groupGrid
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册