|
@@ -18,6 +18,7 @@ MWF.xApplication.Calendar.Main = new Class({
|
|
|
"height": "600",
|
|
"height": "600",
|
|
|
"isResize": true,
|
|
"isResize": true,
|
|
|
"isMax": true,
|
|
"isMax": true,
|
|
|
|
|
+ "eventId" : "",
|
|
|
"title": MWF.xApplication.Calendar.LP.title
|
|
"title": MWF.xApplication.Calendar.LP.title
|
|
|
},
|
|
},
|
|
|
onQueryLoad: function(){
|
|
onQueryLoad: function(){
|
|
@@ -320,6 +321,10 @@ MWF.xApplication.Calendar.Main = new Class({
|
|
|
this.getListView(function(){
|
|
this.getListView(function(){
|
|
|
this.listView.show();
|
|
this.listView.show();
|
|
|
this.currentView = this.listView;
|
|
this.currentView = this.listView;
|
|
|
|
|
+ if( this.options.eventId ){
|
|
|
|
|
+ this.openEvent( this.options.eventId );
|
|
|
|
|
+ this.options.eventId = "";
|
|
|
|
|
+ }
|
|
|
}.bind(this));
|
|
}.bind(this));
|
|
|
},
|
|
},
|
|
|
getListView: function(callback){
|
|
getListView: function(callback){
|
|
@@ -350,6 +355,11 @@ MWF.xApplication.Calendar.Main = new Class({
|
|
|
this.getMonthView(function(){
|
|
this.getMonthView(function(){
|
|
|
this.monthView.show();
|
|
this.monthView.show();
|
|
|
this.currentView = this.monthView;
|
|
this.currentView = this.monthView;
|
|
|
|
|
+ debugger;
|
|
|
|
|
+ if( this.options.eventId ){
|
|
|
|
|
+ this.openEvent( this.options.eventId );
|
|
|
|
|
+ this.options.eventId = "";
|
|
|
|
|
+ }
|
|
|
}.bind(this));
|
|
}.bind(this));
|
|
|
},
|
|
},
|
|
|
getMonthView: function(callback){
|
|
getMonthView: function(callback){
|
|
@@ -380,6 +390,10 @@ MWF.xApplication.Calendar.Main = new Class({
|
|
|
this.getWeekView(function(){
|
|
this.getWeekView(function(){
|
|
|
this.weekView.show();
|
|
this.weekView.show();
|
|
|
this.currentView = this.weekView;
|
|
this.currentView = this.weekView;
|
|
|
|
|
+ if( this.options.eventId ){
|
|
|
|
|
+ this.openEvent( this.options.eventId );
|
|
|
|
|
+ this.options.eventId = "";
|
|
|
|
|
+ }
|
|
|
}.bind(this));
|
|
}.bind(this));
|
|
|
},
|
|
},
|
|
|
getWeekView: function(callback){
|
|
getWeekView: function(callback){
|
|
@@ -410,6 +424,10 @@ MWF.xApplication.Calendar.Main = new Class({
|
|
|
this.getDayView(function(){
|
|
this.getDayView(function(){
|
|
|
this.dayView.show();
|
|
this.dayView.show();
|
|
|
this.currentView = this.dayView;
|
|
this.currentView = this.dayView;
|
|
|
|
|
+ if( this.options.eventId ){
|
|
|
|
|
+ this.openEvent( this.options.eventId );
|
|
|
|
|
+ this.options.eventId = "";
|
|
|
|
|
+ }
|
|
|
}.bind(this), d);
|
|
}.bind(this), d);
|
|
|
},
|
|
},
|
|
|
getDayView: function(callback, d){
|
|
getDayView: function(callback, d){
|
|
@@ -597,6 +615,16 @@ MWF.xApplication.Calendar.Main = new Class({
|
|
|
this.currentView.resetNodeSize();
|
|
this.currentView.resetNodeSize();
|
|
|
}
|
|
}
|
|
|
if( this.leftNavi )this.leftNavi.resizeNode();
|
|
if( this.leftNavi )this.leftNavi.resizeNode();
|
|
|
|
|
+ },
|
|
|
|
|
+ openEvent : function (id) {
|
|
|
|
|
+ debugger;
|
|
|
|
|
+ this.actions.getEvent( id, function (json) {
|
|
|
|
|
+ var form = new MWF.xApplication.Calendar.EventForm(this, json.data, {
|
|
|
|
|
+ isFull : true
|
|
|
|
|
+ }, {app:this});
|
|
|
|
|
+ form.view = this.currentView;
|
|
|
|
|
+ form.open();
|
|
|
|
|
+ }.bind(this))
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|