Răsfoiți Sursa

修复日程安排删除错误

unknown 5 ani în urmă
părinte
comite
cec3c87bd0

+ 1 - 0
o2web/source/x_component_Calendar/Common.js

@@ -1476,6 +1476,7 @@ MWFCalendar.EventTooltip = new Class({
                 "color" : "#fff"
                 "color" : "#fff"
             },
             },
             events : { click : function() {
             events : { click : function() {
+                debugger;
                 var form = new MWFCalendar.EventForm(this, this.data, {
                 var form = new MWFCalendar.EventForm(this, this.data, {
                     isFull : true
                     isFull : true
                 }, {app:this.app});
                 }, {app:this.app});

+ 2 - 1
o2web/source/x_component_Calendar/DayView.js

@@ -890,6 +890,7 @@ MWFCalendarDayView.Calendar.wholeDayDocument = new Class({
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
             axis : "y", "delay" : 350
             axis : "y", "delay" : 350
         });
         });
+        this.tooltip.view = this.view;
     },
     },
     getCoordinate : function(){
     getCoordinate : function(){
         var data = this.data;
         var data = this.data;
@@ -1092,7 +1093,7 @@ MWFCalendarDayView.Calendar.Document = new Class({
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
             axis : "x", "delay" : 350
             axis : "x", "delay" : 350
         });
         });
-
+        this.tooltip.view = this.view;
     },
     },
     resize : function(){
     resize : function(){
         this.node.setStyles(this.getCoordinate());
         this.node.setStyles(this.getCoordinate());

+ 4 - 0
o2web/source/x_component_Calendar/MonthView.js

@@ -1014,6 +1014,7 @@ MWFCalendarMonthView.Calendar.WholeDayWeek = new Class({
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
             axis : "y", "delay" : 350
             axis : "y", "delay" : 350
         });
         });
+        this.tooltip.view = this.view;
     },
     },
     getContainer : function(){
     getContainer : function(){
         return this.calendar.dataTdList[ this.weekInfor.index ]
         return this.calendar.dataTdList[ this.weekInfor.index ]
@@ -1142,6 +1143,7 @@ MWFCalendarMonthView.Calendar.InOnDayDocument = new Class({
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
             axis : "y", "delay" : 350
             axis : "y", "delay" : 350
         });
         });
+        this.tooltip.view = this.view;
     },
     },
     getContainer : function(){
     getContainer : function(){
         return this.calendar.dataTdList[ this.index.weekIndex ]
         return this.calendar.dataTdList[ this.index.weekIndex ]
@@ -1233,6 +1235,7 @@ MWFCalendarMonthView.Document = new Class({
                 this.day.collapse();
                 this.day.collapse();
             }.bind(this)
             }.bind(this)
         });
         });
+        this.tooltip.view = this.view;
     },
     },
     showTooltip: function(  ){
     showTooltip: function(  ){
         //if( this.index > 3 && this.day.isCollapse ){
         //if( this.index > 3 && this.day.isCollapse ){
@@ -1252,6 +1255,7 @@ MWFCalendarMonthView.Document = new Class({
                     //    this.day.collapseDisable = false;
                     //    this.day.collapseDisable = false;
                     //}.bind(this)
                     //}.bind(this)
                 });
                 });
+                this.tooltip.view = this.view;
                 this.tooltip.load();
                 this.tooltip.load();
             }
             }
         //}
         //}

+ 2 - 1
o2web/source/x_component_Calendar/WeekView.js

@@ -1255,6 +1255,7 @@ MWFCalendarWeekView.Calendar.WholeDayDocument = new Class({
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
             axis : "y", "delay" : 350
             axis : "y", "delay" : 350
         });
         });
+        this.tooltip.view = this.view;
     },
     },
     getCoordinate : function(){
     getCoordinate : function(){
         var data = this.data;
         var data = this.data;
@@ -1454,7 +1455,7 @@ MWFCalendarWeekView.Calendar.Document = new Class({
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
         this.tooltip = new MWF.xApplication.Calendar.EventTooltip(this.app.content, this.node, this.app, this.data, {
             axis : "x", "delay" : 350
             axis : "x", "delay" : 350
         });
         });
-
+        this.tooltip.view = this.view;
     },
     },
     resize : function(){
     resize : function(){
         this.node.setStyles(this.getCoordinate());
         this.node.setStyles(this.getCoordinate());