提交 147624e3 编写于 作者: U unknown

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

上级 1541312c
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册