var _this = this;
var MODULE = this;
+ var baseURL = '/web.eventmanager/admin.php';
+
return {
xtype: 'Body',
xns: Roo.bootstrap,
_this.popover.show(el)
},
eventleave : function(e,el,data) {
- Roo.log('event leave');
_this.popover.hide();
},
- monthchange : function(e,date) {
- Roo.log(_this);
- Roo.log(baseURL);
+ monthchange : function(e,data) {
+
+ }
+ },
+ store : {
+ xtype: 'Store',
+ xns: Roo.data,
+ listeners : {
+ beforeload : function (_self, o){
+ o.params = o.params || {};
+ var d = new Date().format('Y-m-d');
+ if(_this.cal){
+ d = typeof(_this.cal.activeDate) == 'string' ? _this.cal.activeDate : _this.cal.activeDate.format("Y-m-d");
+ }
+ o.params._activeDate = d
+ }
+ },
+ remoteSort : true,
+ sortInfo : { direction : 'ASC', field: 'start_dt' },
+ proxy : {
+ xtype: 'HttpProxy',
+ xns: Roo.data,
+ method : 'GET',
+ url : baseURL + '/Roo/Cal_event.php'
+ },
+ reader : {
+ xtype: 'JsonReader',
+ xns: Roo.data,
+ id : 'id',
+ root : 'data',
+ totalProperty : 'total',
+ fields : [{"name":"id","type":"int"},{"name":"title","type":"string"}]
}
}
-// store : {
-// xtype: 'Store',
-// xns: Roo.data,
-// listeners : {
-// beforeload : function (_self, o){
-// o.params = o.params || {};
-//
-// }
-// },
-// remoteSort : true,
-// sortInfo : { direction : 'DESC', field: 'display_order' },
-// proxy : {
-// xtype: 'HttpProxy',
-// xns: Roo.data,
-// method : 'GET',
-// url : baseURL + '/Roo/Category.php'
-// },
-// reader : {
-// xtype: 'JsonReader',
-// xns: Roo.data,
-// id : 'id',
-// root : 'data',
-// totalProperty : 'total',
-// fields : [{"name":"id","type":"int"},{"name":"title","type":"string"}]
-// }
-// }
}
]
}