Просмотр исходного кода

修复日程安排可能重复创建的问题

unknown 5 лет назад
Родитель
Сommit
147624e368
1 измененных файлов с 10 добавлено и 10 удалено
  1. 10 10
      o2web/source/x_component_Calendar/Main.js

+ 10 - 10
o2web/source/x_component_Calendar/Main.js

@@ -95,15 +95,15 @@ MWF.xApplication.Calendar.Main = new Class({
 
     },
     createDefaultCalendar : function( callback ){
-      this.actions.saveCalendar({
-          name : "我的日历",
-          type : "person",
-          color : "",
-          description : "",
-          source : "PERSON",
-          isPublic : false//,
-          //manageablePersonList : [this.userName]
-      }, function(){
+      // this.actions.saveCalendar({
+      //     name : "我的日历",
+      //     type : "person",
+      //     color : "",
+      //     description : "",
+      //     source : "PERSON",
+      //     isPublic : false//,
+      //     //manageablePersonList : [this.userName]
+      // }, function(){
           this.actions.listMyCalendar( function( json ){
               if( ( json.data.myCalendars || [] ).length == 0 ){
               }else{
@@ -113,7 +113,7 @@ MWF.xApplication.Calendar.Main = new Class({
                   if(callback)callback()
               }
           }.bind(this))
-      }.bind(this))
+      // }.bind(this))
     },
     createNode: function(){
         this.content.setStyle("overflow", "hidden");